From feb59d0b990e999924cc447a0642904cde2402d8 Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Thu, 18 Jul 2024 14:05:03 +0800 Subject: [PATCH] adjust help msg --- crates/nu-cmd-lang/src/core_commands/break_.rs | 2 +- crates/nu-cmd-lang/src/core_commands/continue_.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {