3 lines
101 B
Rust
3 lines
101 B
Rust
pub fn is_leap_year(year: u64) -> bool {
|
|
year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)
|
|
}
|