summaryrefslogtreecommitdiff
path: root/day4
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-12-08 14:43:11 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-12-08 14:43:11 +0100
commitc20904eab90f472d9f94334e52594611af6a4496 (patch)
tree819e081ae02894c901eea0f40bc1773b2e010008 /day4
parentee4c8035e1f31ca1c5e856277d9706f7730785d9 (diff)
Fix when use search by cols
Diffstat (limited to 'day4')
-rw-r--r--day4/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/day4/src/main.rs b/day4/src/main.rs
index 6e44c10..4b2f9b3 100644
--- a/day4/src/main.rs
+++ b/day4/src/main.rs
@@ -30,7 +30,7 @@ fn part1(grids: &Vec<Vec<u32>>, mut inputs: Vec<u32>) -> u32 {
}
// Search by cols
- if winner >= 0 {
+ if winner < 0 {
for j in 0..5 {
let mut n = 0;
for k in [0, 5, 10, 15, 20] {