diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2020-07-01 14:51:10 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-07-01 18:52:36 +0100 |
commit | be064d04b749e206fcd0b69bc6778500a42d70d8 (patch) | |
tree | 410c2216f737546b5383cb9e7bc0b23b88208a44 /src/gleam_stdlib.erl | |
parent | 7d1366b6787b869a78cf8874e521634d2d0aaa95 (diff) | |
download | gleam_stdlib-be064d04b749e206fcd0b69bc6778500a42d70d8.tar.gz gleam_stdlib-be064d04b749e206fcd0b69bc6778500a42d70d8.zip |
use bit_string fn
Diffstat (limited to 'src/gleam_stdlib.erl')
-rw-r--r-- | src/gleam_stdlib.erl | 5 |
1 files changed, 1 insertions, 4 deletions
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). |