From a5caa00dbfd391b604296168fc9568a608c39748 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 25 Nov 2019 19:05:08 +0100 Subject: [PATCH] 2018: main: display correct line numbers --- aoc2018/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/aoc2018/src/main.rs b/aoc2018/src/main.rs index 15a9db4..5a23d0b 100644 --- a/aoc2018/src/main.rs +++ b/aoc2018/src/main.rs @@ -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!();