From 89a62bf7b37ea99cdabc1dd9a0d55c6d33ea5293 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 3 Dec 2022 21:25:34 +0100 Subject: [PATCH] Improved error for wrong amount of lines --- 2022/src/bin/day3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/src/bin/day3.rs b/2022/src/bin/day3.rs index 6d335f7..1ad6d29 100644 --- a/2022/src/bin/day3.rs +++ b/2022/src/bin/day3.rs @@ -71,7 +71,7 @@ impl aoc::Solver for Day { if let [a, b, c] = group { (a, b, c) } else { - panic!("Invalid input") + panic!("The total amount of lines should be a multiple of 3") } }) .map(|(a, b, c)| {