From ed6315374ec82a3f622760c2553b6ee188a01a57 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Thu, 1 Dec 2022 14:23:20 -0800 Subject: [PATCH] fix possible off-by-one --- 2022-aoc/src/d1.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/2022-aoc/src/d1.rs b/2022-aoc/src/d1.rs index 9226ee6..1bec334 100644 --- a/2022-aoc/src/d1.rs +++ b/2022-aoc/src/d1.rs @@ -15,6 +15,7 @@ fn parse_input_day1(input: &str) -> Beep { cur = 0; } } + out.push(cur); out }