From 0886afe65054ff120676e66ed6a651ba8b3123c9 Mon Sep 17 00:00:00 2001 From: JT Date: Fri, 28 May 2021 11:20:33 +1200 Subject: [PATCH] Fix for in (#3506) * Fix for..in examples * Fix for..in examples --- crates/nu-command/src/commands/for_in.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/crates/nu-command/src/commands/for_in.rs b/crates/nu-command/src/commands/for_in.rs index 08dcaf5d46..d302e0037f 100644 --- a/crates/nu-command/src/commands/for_in.rs +++ b/crates/nu-command/src/commands/for_in.rs @@ -48,17 +48,8 @@ impl WholeStreamCommand for ForIn { ]), }, Example { - description: "Echo the square of each integer", - example: "for x in 1..3 { $x }", - result: Some(vec![ - UntaggedValue::int(1).into(), - UntaggedValue::int(2).into(), - UntaggedValue::int(3).into(), - ]), - }, - Example { - description: "Echo the square of each integer", - example: "for x in 1..3 { $x }", + description: "Work with elements of a range", + example: "for $x in 1..3 { $x }", result: Some(vec![ UntaggedValue::int(1).into(), UntaggedValue::int(2).into(),