1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-18 20:39:35 +02:00

Update luhn.rs (#1376)

Fix semicolon

I'm only learning Rust but I think it makes more sense
This commit is contained in:
justanotheranonymoususer 2023-10-18 06:53:14 +03:00 committed by GitHub
parent e0546608d5
commit b8b274165c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,8 @@ pub fn luhn(cc_number: &str) -> bool {
double_digit
};
} else {
sum += digit
};
sum += digit;
}
double = !double;
digit_seen += 1;
} else {