diff --git a/src/exercises/day-1/luhn.rs b/src/exercises/day-1/luhn.rs index 025e2682..d7e34adb 100644 --- a/src/exercises/day-1/luhn.rs +++ b/src/exercises/day-1/luhn.rs @@ -30,8 +30,8 @@ pub fn luhn(cc_number: &str) -> bool { double_digit }; } else { - sum += digit - }; + sum += digit; + } double = !double; digit_seen += 1; } else {