diff --git a/day3/src/main.rs b/day3/src/main.rs index 39300b3..8475aba 100644 --- a/day3/src/main.rs +++ b/day3/src/main.rs @@ -76,11 +76,11 @@ fn main() { if num1 == -1 { num1 = new_value; } else if num1 != new_value { - if num2 == -1 { - num2 = new_value; - } else if num2 != new_value { - valid_gear = false; - } + if num2 == -1 { + num2 = new_value; + } else if num2 != new_value { + valid_gear = false; + } } } }