From a72c26bdc3ce59edfbc0d77f83fbcb4e5a7d1fb7 Mon Sep 17 00:00:00 2001 From: mo8it Date: Wed, 3 Jul 2024 17:53:30 +0200 Subject: [PATCH] Fix solution of options1 for stable Rust --- solutions/12_options/options1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/12_options/options1.rs b/solutions/12_options/options1.rs index 1ffbb045..230af3af 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 { match hour_of_day { - 0..22 => Some(5), - 22..24 => Some(0), + 0..=21 => Some(5), + 22..=23 => Some(0), _ => None, } }