diff --git a/crates/nu-cmd-lang/src/core_commands/break_.rs b/crates/nu-cmd-lang/src/core_commands/break_.rs index 806ef55ee3..943e32a531 100644 --- a/crates/nu-cmd-lang/src/core_commands/break_.rs +++ b/crates/nu-cmd-lang/src/core_commands/break_.rs @@ -23,7 +23,7 @@ impl Command for Break { r#"This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html - WARN: break should be used only in `while`, `loop`, `for`"# + break can only be used in while, loop, and for loops. It can not be used with each or other filter commands"# } fn command_type(&self) -> CommandType { diff --git a/crates/nu-cmd-lang/src/core_commands/continue_.rs b/crates/nu-cmd-lang/src/core_commands/continue_.rs index a8f0ee8ede..b795456c1d 100644 --- a/crates/nu-cmd-lang/src/core_commands/continue_.rs +++ b/crates/nu-cmd-lang/src/core_commands/continue_.rs @@ -23,7 +23,7 @@ impl Command for Continue { r#"This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html - WARN: continue should be only used in `while`, `loop`, `for`"# + continue can only be used in while, loop, and for loops. It can not be used with each or other filter commands"# } fn command_type(&self) -> CommandType {