aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gleam/io.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/io.gleam b/src/gleam/io.gleam
index 9fef99a..2b083b1 100644
--- a/src/gleam/io.gleam
+++ b/src/gleam/io.gleam
@@ -51,7 +51,7 @@ pub fn println(string: String) -> Nil {
/// // -> [2, 3]
/// [4, 6]
///
-pub fn debug(term: anything) -> Nil {
+pub fn debug(term: anything) -> anything {
erl_print("~tp\n", [term])
- Nil
+ term
}