| ... | @@ -89,10 +89,10 @@ pub const Month = enum(u4) { | ... | @@ -89,10 +89,10 @@ pub const Month = enum(u4) { |
| 89 | pub fn getDaysInMonth(year: Year, month: Month) u5 { | 89 | pub fn getDaysInMonth(year: Year, month: Month) u5 { |
| 90 | return switch (month) { | 90 | return switch (month) { |
| 91 | .jan => 31, | 91 | .jan => 31, |
| 92 | .feb => @as(u5, switch (isLeapYear(year)) { | 92 | .feb => switch (isLeapYear(year)) { |
| 93 | true => 29, | 93 | true => 29, |
| 94 | false => 28, | 94 | false => 28, |
| 95 | }), | 95 | }, |
| 96 | .mar => 31, | 96 | .mar => 31, |
| 97 | .apr => 30, | 97 | .apr => 30, |
| 98 | .may => 31, | 98 | .may => 31, |