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