diff options
| author | Mo <76752051+mo8it@users.noreply.github.com> | 2024-07-03 18:02:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-03 18:02:43 +0200 |
| commit | 0f71e122357f3f214c1d9db71f1d84c9f92adc5f (patch) | |
| tree | ca11467ca960afada13c7ba3786bc80cf73cadff /solutions | |
| parent | e5bc8588e0d6bf8d925444ebc02d271051d310cf (diff) | |
| parent | fa6b7d77b2798985bdc7d403c8f300a9c289222c (diff) | |
Merge pull request #2011 from rust-lang/ci
Update CI
Diffstat (limited to 'solutions')
| -rw-r--r-- | solutions/12_options/options1.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solutions/12_options/options1.rs b/solutions/12_options/options1.rs index 1ffbb04..230af3a 100644 --- a/solutions/12_options/options1.rs +++ b/solutions/12_options/options1.rs @@ -4,8 +4,8 @@ // `hour_of_day` is higher than 23. fn maybe_icecream(hour_of_day: u16) -> Option<u16> { match hour_of_day { - 0..22 => Some(5), - 22..24 => Some(0), + 0..=21 => Some(5), + 22..=23 => Some(0), _ => None, } } |
