Skip to content

Commit f86876c

Browse files
Fix formatting with cargo fmt
1 parent 4860e64 commit f86876c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/math/palindrome.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ pub fn is_palindrome(number: u64) -> bool {
1818
while n > 0 {
1919
// Get the last digit
2020
let remainder = n % 10;
21-
21+
2222
// Build the reversed number
2323
reversed_number = (reversed_number * 10) + remainder;
24-
24+
2525
// Remove the last digit
2626
n /= 10;
2727
}

0 commit comments

Comments
 (0)