Fix for in (#3506)

* Fix for..in examples

* Fix for..in examples
This commit is contained in:
JT 2021-05-28 11:20:33 +12:00 committed by GitHub
parent 872f6166e1
commit 0886afe650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,17 +48,8 @@ impl WholeStreamCommand for ForIn {
]), ]),
}, },
Example { Example {
description: "Echo the square of each integer", description: "Work with elements of a range",
example: "for x in 1..3 { $x }", 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 }",
result: Some(vec![ result: Some(vec![
UntaggedValue::int(1).into(), UntaggedValue::int(1).into(),
UntaggedValue::int(2).into(), UntaggedValue::int(2).into(),