2018: main: display correct line numbers
This commit is contained in:
parent
9278a5472a
commit
a5caa00dbf
|
@ -21,6 +21,7 @@ fn main() -> Result<()> {
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
for (i, day) in days.iter().enumerate() {
|
for (i, day) in days.iter().enumerate() {
|
||||||
|
let i = i + 1;
|
||||||
println!("day{}: ", i);
|
println!("day{}: ", i);
|
||||||
day().unwrap_or_else(|e| panic!("error running day {}: {}", i, e));
|
day().unwrap_or_else(|e| panic!("error running day {}: {}", i, e));
|
||||||
println!();
|
println!();
|
||||||
|
|
Loading…
Reference in a new issue