aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.erl
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-01-16 17:23:50 +0000
committerLouis Pilfold <louis@lpil.uk>2024-01-16 17:23:50 +0000
commit0685ecb269ad0482c34f19468020865045efac30 (patch)
tree134f1666ef6d573e2237ba09758abb205c31aa0b /src/gleam_stdlib.erl
parentd47580593e050aae5078e3e6cc335180208f24dd (diff)
downloadgleam_stdlib-0685ecb269ad0482c34f19468020865045efac30.tar.gz
gleam_stdlib-0685ecb269ad0482c34f19468020865045efac30.zip
Remove deprecated
Diffstat (limited to 'src/gleam_stdlib.erl')
-rw-r--r--src/gleam_stdlib.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl
index c6ea125..433b4d4 100644
--- a/src/gleam_stdlib.erl
+++ b/src/gleam_stdlib.erl
@@ -58,7 +58,7 @@ classify_dynamic(X) when is_integer(X) -> <<"Int">>;
classify_dynamic(X) when is_float(X) -> <<"Float">>;
classify_dynamic(X) when is_list(X) -> <<"List">>;
classify_dynamic(X) when is_boolean(X) -> <<"Bool">>;
-classify_dynamic(X) when is_map(X) -> <<"Map">>;
+classify_dynamic(X) when is_map(X) -> <<"Dict">>;
classify_dynamic(X) when is_tuple(X) ->
iolist_to_binary(["Tuple of ", integer_to_list(tuple_size(X)), " elements"]);
classify_dynamic(X) when
@@ -70,7 +70,7 @@ classify_dynamic(X) when
classify_dynamic(_) -> <<"Some other type">>.
decode_map(Data) when is_map(Data) -> {ok, Data};
-decode_map(Data) -> decode_error_msg(<<"Map">>, Data).
+decode_map(Data) -> decode_error_msg(<<"Dict">>, Data).
decode_bit_array(Data) when is_bitstring(Data) -> {ok, Data};
decode_bit_array(Data) -> decode_error_msg(<<"BitArray">>, Data).
@@ -94,7 +94,7 @@ decode_field(Data, Key) when is_map(Data) ->
{ok, none}
end;
decode_field(Data, _) ->
- decode_error_msg(<<"Map">>, Data).
+ decode_error_msg(<<"Dict">>, Data).
size_of_tuple(Data) -> tuple_size(Data).