From f1eaaa66e29c46587a4822c8938e86ec4c754151 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 23 Aug 2021 16:17:27 +0100 Subject: Fix io.print crash bug Closes https://github.com/gleam-lang/stdlib/issues/228 --- src/gleam/io.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gleam/io.gleam b/src/gleam/io.gleam index 86ca2c5..baa0bdb 100644 --- a/src/gleam/io.gleam +++ b/src/gleam/io.gleam @@ -16,7 +16,7 @@ pub fn print(string: String) -> Nil { if erlang { fn do_print(string: String) -> Nil { - erl_print(string, []) + erl_print("~s", [string]) Nil } } -- cgit v1.2.3