forked from extern/nushell
Fix match
example whitespace (#9961)
I was looking up `match` documentation and noticed that the formatting was a bit off for the last example (starts on the wrong line, is several columns too far to the right). ## Before: ![image](https://github.com/nushell/nushell/assets/26268125/cea55875-894c-442f-aa93-d5c18a0cdfa5) ## After: ![image](https://github.com/nushell/nushell/assets/26268125/064c9f80-6a70-4748-a877-5344ec6e6a80)
This commit is contained in:
parent
85c2035016
commit
0674d4960b
@ -121,12 +121,11 @@ impl Command for Match {
|
|||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Match with a guard",
|
description: "Match with a guard",
|
||||||
example: "
|
example: "match [1 2 3] {
|
||||||
match [1 2 3] {
|
[$x, ..$y] if $x == 1 => { 'good list' },
|
||||||
[$x, ..$y] if $x == 1 => { 'good list' },
|
_ => { 'not a very good list' }
|
||||||
_ => { 'not a very good list' }
|
}
|
||||||
}
|
",
|
||||||
",
|
|
||||||
result: Some(Value::test_string("good list")),
|
result: Some(Value::test_string("good list")),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user