summaryrefslogtreecommitdiff
path: root/day4/src
diff options
context:
space:
mode:
Diffstat (limited to 'day4/src')
-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] {