From e226804c469edc225e4b4c07a02285b9835b6d9a Mon Sep 17 00:00:00 2001 From: Steph Date: Thu, 1 Dec 2022 21:02:00 +0100 Subject: [PATCH] Johann made me clean up my code a bit (rust) --- 2021/4/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2021/4/src/main.rs b/2021/4/src/main.rs index 962dc2a..aa9235b 100644 --- a/2021/4/src/main.rs +++ b/2021/4/src/main.rs @@ -69,7 +69,7 @@ fn main() { .len() > 0 ).collect(); - if winning_boards.len() == 1 { + if last_winning_boards.len() == 0 && winning_boards.len() == 1 { let sum: i32 = winning_boards .iter() .map(|(_, x)| x)