diff --git a/crates/nu-cmd-lang/src/core_commands/break_.rs b/crates/nu-cmd-lang/src/core_commands/break_.rs index 7636acdcb5..806ef55ee3 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: Don't try to use it in closure. Although it will raise error, statements before `break` will be executed"# + WARN: break should be used only in `while`, `loop`, `for`"# } 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 0edc704166..a8f0ee8ede 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: Don't try to use it in closure. Although it will raise error, statements before `continue` will be executed"# + WARN: continue should be only used in `while`, `loop`, `for`"# } fn command_type(&self) -> CommandType {