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:
parent
e0546608d5
commit
b8b274165c
@ -30,8 +30,8 @@ pub fn luhn(cc_number: &str) -> bool {
|
||||
double_digit
|
||||
};
|
||||
} else {
|
||||
sum += digit
|
||||
};
|
||||
sum += digit;
|
||||
}
|
||||
double = !double;
|
||||
digit_seen += 1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user