Improve sleep example using multiple durations (#14520)

It is to cheat our parser and not to repeat yourself.
This commit is contained in:
Stefan Holderbach 2024-12-05 14:54:14 +01:00 committed by GitHub
parent d97562f6e8
commit f51828d049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {