From cce6a4427718724a9096800754cd3abeca6a1580 Mon Sep 17 00:00:00 2001 From: Thomas Sauvajon Date: Wed, 27 May 2020 18:50:24 +1000 Subject: [PATCH] fix(option1): Don't add only zeros to the numbers array --- exercises/option/option1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/option/option1.rs b/exercises/option/option1.rs index 2a6c2f772b..602ff1a9e5 100644 --- a/exercises/option/option1.rs +++ b/exercises/option/option1.rs @@ -15,7 +15,7 @@ fn main() { let mut numbers: [Option; 5]; for iter in 0..5 { let number_to_add: u16 = { - ((iter * 5) + 2) / (4 * 16) + ((iter * 1235) + 2) / (4 * 16) }; numbers[iter as usize] = number_to_add;