We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a95adb commit 120d040Copy full SHA for 120d040
src/year2020/day04.rs
@@ -39,7 +39,7 @@ fn parse_block(block: &str) -> Passport<'_> {
39
40
fn validate_field(&[key, value]: &[&str; 2]) -> bool {
41
match key {
42
- "byr" => validate_range(value, 1920..=2022),
+ "byr" => validate_range(value, 1920..=2002),
43
"iyr" => validate_range(value, 2010..=2020),
44
"eyr" => validate_range(value, 2020..=2030),
45
"hgt" => validate_height(value),
0 commit comments