From 1359b26da2aee5e4ccc39c2619e4f2bdb487727a Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 6 Nov 2023 06:59:13 -0600 Subject: [PATCH] update `items` example to send data through the pipeline (#10976) # Description This PR updates the `items` example so that it doesn't use `echo`. `echo` now works like print unless it's being redirected, so it doesn't send values through the pipeline anymore like the example showed. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/filters/items.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/nu-command/src/filters/items.rs b/crates/nu-command/src/filters/items.rs index 619adee4a..758594356 100644 --- a/crates/nu-command/src/filters/items.rs +++ b/crates/nu-command/src/filters/items.rs @@ -123,8 +123,7 @@ impl Command for Items { fn examples(&self) -> Vec { vec![Example { - example: - "{ new: york, san: francisco } | items {|key, value| echo $'($key) ($value)' }", + example: "{ new: york, san: francisco } | items {|key, value| $'($key) ($value)' }", description: "Iterate over each key-value pair of a record", result: Some(Value::list( vec![