From f51828d049b950c8eee9fd1c5fce2e4f6d784219 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 5 Dec 2024 14:54:14 +0100 Subject: [PATCH] Improve `sleep` example using multiple durations (#14520) It is to cheat our parser and not to repeat yourself. --- crates/nu-command/src/platform/sleep.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/platform/sleep.rs b/crates/nu-command/src/platform/sleep.rs index c63de6ae9d..f995ac85be 100644 --- a/crates/nu-command/src/platform/sleep.rs +++ b/crates/nu-command/src/platform/sleep.rs @@ -70,8 +70,8 @@ impl Command for Sleep { result: Some(Value::nothing(Span::test_data())), }, Example { - description: "Sleep for 3sec", - example: "sleep 1sec 1sec 1sec", + description: "Use multiple arguments to write a duration with multiple units, which is unsupported by duration literals", + example: "sleep 1min 30sec", result: None, }, Example {