aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Saxton <peterhsaxton@gmail.com>2020-06-17 07:15:54 +0100
committerLouis Pilfold <louis@lpil.uk>2020-06-17 07:39:11 +0100
commit16ac7024bf620b8e8ba834aa27646e503b4450eb (patch)
tree47b122873bb8c816ca5758006218397b0b2c7ee9 /src
parenta4ea7efadd177219711484255c671bd74248ace3 (diff)
downloadgleam_stdlib-16ac7024bf620b8e8ba834aa27646e503b4450eb.tar.gz
gleam_stdlib-16ac7024bf620b8e8ba834aa27646e503b4450eb.zip
return value from debug so it can be piped
Diffstat (limited to 'src')
-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
}