Skip to content

Commit 120d040

Browse files
authored
Valid year range for "byr" is 1920..=2002 (#8)
1 parent 3a95adb commit 120d040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/year2020/day04.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn parse_block(block: &str) -> Passport<'_> {
3939

4040
fn validate_field(&[key, value]: &[&str; 2]) -> bool {
4141
match key {
42-
"byr" => validate_range(value, 1920..=2022),
42+
"byr" => validate_range(value, 1920..=2002),
4343
"iyr" => validate_range(value, 2010..=2020),
4444
"eyr" => validate_range(value, 2020..=2030),
4545
"hgt" => validate_height(value),

0 commit comments

Comments
 (0)