Skip to content

Commit

Permalink
Fix spec for json:format/3
Browse files Browse the repository at this point in the history
Was wrong, the purpose of that function is to take any term.
  • Loading branch information
dgud committed Oct 8, 2024
1 parent 9ae2ef5 commit efd3afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib/src/json.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit efd3afd

Please sign in to comment.