Browse Source

Update wrong arg count panic message

main
Anthony J. Martinez 7 months ago
parent
commit
d790308dcc
  1. 2
      day1/src/main.rs
  2. 2
      day2/src/main.rs

2
day1/src/main.rs

@ -51,7 +51,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
part1(&data, &TARGET);
part2(&data, &TARGET);
} else {
panic!("Too many arguments")
panic!("Only one argument please")
}
Ok(())
}

2
day2/src/main.rs

@ -69,7 +69,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("There are {} valid passwords (part 1)", valid_1);
println!("There are {} valid passwords (part 2)", valid_2);
} else {
panic!("Too many arguments")
panic!("Only one argument please.")
}
Ok(())
}
Loading…
Cancel
Save