aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.erl
diff options
context:
space:
mode:
authorErik Terpstra <39518+eterps@users.noreply.github.com>2020-05-11 19:20:14 +0200
committerLouis Pilfold <louis@lpil.uk>2020-05-12 11:05:04 +0100
commitc84aa94fa4b453abca21c365ec511a4ef2c3d8c1 (patch)
tree27be4c3d8462a19e78448771c9254330ab92db0e /src/gleam_stdlib.erl
parent16d2811b1dd64d59e1d73cc5cc88ad7250651362 (diff)
downloadgleam_stdlib-c84aa94fa4b453abca21c365ec511a4ef2c3d8c1.tar.gz
gleam_stdlib-c84aa94fa4b453abca21c365ec511a4ef2c3d8c1.zip
Update string.trim to use Direction type and call external string.trim within the same file
Diffstat (limited to 'src/gleam_stdlib.erl')
-rw-r--r--src/gleam_stdlib.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl
index 54fcdaa..49a7e2a 100644
--- a/src/gleam_stdlib.erl
+++ b/src/gleam_stdlib.erl
@@ -7,7 +7,7 @@
iodata_append/2, iodata_prepend/2, identity/1, decode_int/1,
decode_string/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_contains/2, string_trim/1]).
+ string_contains/2]).
should_equal(Actual, Expected) -> ?assertEqual(Expected, Actual).
should_not_equal(Actual, Expected) -> ?assertNotEqual(Expected, Actual).
@@ -127,5 +127,3 @@ string_contains(Haystack, Needle) ->
_ ->
true
end.
-
-string_trim(String) -> string:trim(String, both).