2018: main: display correct line numbers
This commit is contained in:
parent
9278a5472a
commit
a5caa00dbf
|
@ -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!();
|
||||
|
|
Loading…
Reference in a new issue