diff --git a/internal/puzzles/constants.go b/internal/puzzles/constants.go index 4505f208..2affe5e3 100644 --- a/internal/puzzles/constants.go +++ b/internal/puzzles/constants.go @@ -52,6 +52,7 @@ const ( Year2019 // 2019 Year2020 // 2020 Year2021 // 2021 + Year2022 // 2022 yearSentinel ) diff --git a/internal/puzzles/year_string.go b/internal/puzzles/year_string.go index aff61cec..3f8c669d 100644 --- a/internal/puzzles/year_string.go +++ b/internal/puzzles/year_string.go @@ -16,12 +16,13 @@ func _() { _ = x[Year2019-5] _ = x[Year2020-6] _ = x[Year2021-7] - _ = x[yearSentinel-8] + _ = x[Year2022-8] + _ = x[yearSentinel-9] } -const _Year_name = "yearUnknown2015201620172018201920202021yearSentinel" +const _Year_name = "yearUnknown20152016201720182019202020212022yearSentinel" -var _Year_index = [...]uint8{0, 11, 15, 19, 23, 27, 31, 35, 39, 51} +var _Year_index = [...]uint8{0, 11, 15, 19, 23, 27, 31, 35, 39, 43, 55} func (i Year) String() string { if i < 0 || i >= Year(len(_Year_index)-1) {