clarification

This commit is contained in:
2025-09-28 18:00:55 +03:00
parent a854ab9301
commit 4b3ac42b28
+1 -1
View File
@@ -11,7 +11,7 @@ fn main() {
let timeout: u64 = args.get(1) let timeout: u64 = args.get(1)
.expect("There should be at least 1 argument, which specifies amount of time (in seconds) for timer to work!") .expect("There should be at least 1 argument, which specifies amount of time (in seconds) for timer to work!")
.parse() .parse()
.expect("The first argument should be a non-negative number"); .expect("The first argument should be a non-negative integer number");
let measurement: char = args let measurement: char = args
.get(2) .get(2)
.map_or('s', |arg| arg.chars().next().unwrap_or('s')); .map_or('s', |arg| arg.chars().next().unwrap_or('s'));