mirror of
https://github.com/nushell/nushell
synced 2025-01-13 05:38:57 +00:00
Improve sleep
example using multiple durations (#14520)
It is to cheat our parser and not to repeat yourself.
This commit is contained in:
parent
d97562f6e8
commit
f51828d049
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue