From be5f5162028aab66a5b8547c16caf53cc8121464 Mon Sep 17 00:00:00 2001 From: Inveracity Date: Sat, 13 Jan 2024 11:01:28 +0100 Subject: [PATCH] explicit print as nu no longer automatically prints output of every line --- book/scripts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/scripts.md b/book/scripts.md index ae86e7217fa..fcd94d76a9e 100644 --- a/book/scripts.md +++ b/book/scripts.md @@ -17,7 +17,7 @@ Let's look at an example script file: ```nu # myscript.nu def greet [name] { - ["hello" $name] + print ["hello" $name] } greet "world" @@ -31,7 +31,7 @@ In the above, first `greet` is defined by the Nushell interpreter. This allows u greet "world" def greet [name] { - ["hello" $name] + print ["hello" $name] } ```