From ccd2721335d3272297f074d5e5e7e84f20595045 Mon Sep 17 00:00:00 2001 From: Justin Kelz Date: Sun, 1 May 2022 09:12:21 -0700 Subject: [PATCH] added comment to fix for options1 --- exercises/option/option1.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/option/option1.rs b/exercises/option/option1.rs index 631ad34a..7d758c72 100644 --- a/exercises/option/option1.rs +++ b/exercises/option/option1.rs @@ -12,6 +12,7 @@ fn main() { print_number(Some(99)); let mut numbers: [Option; 5] = [None; 5]; // Issue #395 on rustlings +// Using [0; 5]; Will fail to compile as the types are mismatched. Therefore putting Some or None into the default values of the array as you initialize is important to understand. for iter in 0..5 { let number_to_add: u16 = { ((iter * 1235) + 2) / (4 * 16)