From be064d04b749e206fcd0b69bc6778500a42d70d8 Mon Sep 17 00:00:00 2001 From: Peter Saxton Date: Wed, 1 Jul 2020 14:51:10 +0100 Subject: use bit_string fn --- src/gleam_stdlib.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gleam_stdlib.erl') diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl index fa5f8fd..fa7f683 100644 --- a/src/gleam_stdlib.erl +++ b/src/gleam_stdlib.erl @@ -4,7 +4,7 @@ -export([should_equal/2, should_not_equal/2, should_be_ok/1, should_be_error/1, atom_from_string/1, atom_create_from_string/1, atom_to_string/1, map_get/2, iodata_append/2, iodata_prepend/2, identity/1, - decode_int/1, decode_string/1, decode_bool/1, decode_float/1, + decode_int/1, decode_bool/1, decode_float/1, decode_thunk/1, decode_atom/1, decode_list/1, decode_field/2, decode_element/2, parse_int/1, parse_float/1, compare_strings/2, string_pop_grapheme/1, string_starts_with/2, string_ends_with/2, @@ -65,9 +65,6 @@ decode_atom(Data) -> decode_error_msg("an atom", Data). decode_bit_string(Data) when is_bitstring(Data) -> {ok, Data}; decode_bit_string(Data) -> decode_error_msg("a bit_string", Data). -decode_string(Data) when is_binary(Data) -> {ok, Data}; -decode_string(Data) -> decode_error_msg("a string", Data). - decode_int(Data) when is_integer(Data) -> {ok, Data}; decode_int(Data) -> decode_error_msg("an int", Data). -- cgit v1.2.3