diff --git a/crates/nu-cmd-lang/src/core_commands/match_.rs b/crates/nu-cmd-lang/src/core_commands/match_.rs index 8f5032d15c..26deb0cce9 100644 --- a/crates/nu-cmd-lang/src/core_commands/match_.rs +++ b/crates/nu-cmd-lang/src/core_commands/match_.rs @@ -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")), }, ]