From efd3afd02de7937ba58116825a55a65c114d4440 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Tue, 8 Oct 2024 10:03:34 +0200 Subject: [PATCH] Fix spec for json:format/3 Was wrong, the purpose of that function is to take any term. --- lib/stdlib/src/json.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib/src/json.erl b/lib/stdlib/src/json.erl index 72f7b1a1fbbd..f7e9d57ed8be 100644 --- a/lib/stdlib/src/json.erl +++ b/lib/stdlib/src/json.erl @@ -617,7 +617,7 @@ ok """. -doc(#{since => ~"OTP 27.1"}). --spec format(Term :: encode_value(), Encoder::formatter(), Options :: map()) -> iodata(). +-spec format(Term :: dynamic(), Encoder::formatter(), Options :: map()) -> iodata(). format(Term, Encoder, Options) when is_function(Encoder, 3) -> Def = #{level => 0, col => 0,