2018: main: display correct line numbers

This commit is contained in:
Antoine Martin 2019-11-25 19:05:08 +01:00
parent 9278a5472a
commit a5caa00dbf

View file

@ -21,6 +21,7 @@ fn main() -> Result<()> {
}
None => {
for (i, day) in days.iter().enumerate() {
let i = i + 1;
println!("day{}: ", i);
day().unwrap_or_else(|e| panic!("error running day {}: {}", i, e));
println!();