mirror of
https://github.com/nushell/nushell.git
synced 2025-03-26 23:36:20 +01:00
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:  ## After: 
This commit is contained in:
parent
85c2035016
commit
0674d4960b
@ -121,12 +121,11 @@ impl Command for Match {
|
||||
},
|
||||
Example {
|
||||
description: "Match with a guard",
|
||||
example: "
|
||||
match [1 2 3] {
|
||||
[$x, ..$y] if $x == 1 => { 'good list' },
|
||||
_ => { 'not a very good list' }
|
||||
}
|
||||
",
|
||||
example: "match [1 2 3] {
|
||||
[$x, ..$y] if $x == 1 => { 'good list' },
|
||||
_ => { 'not a very good list' }
|
||||
}
|
||||
",
|
||||
result: Some(Value::test_string("good list")),
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user