diff options
| author | Thomas Sauvajon <thomas@sauvajon.tech> | 2020-05-27 18:50:24 +1000 |
|---|---|---|
| committer | Thomas Sauvajon <thomas@sauvajon.tech> | 2020-05-27 18:55:12 +1000 |
| commit | cce6a4427718724a9096800754cd3abeca6a1580 (patch) | |
| tree | a44948ec61c5d87bacb6e58fa3bf05e82724ee5c | |
| parent | 06ef4cc654e75d22a526812919ee49b8956280bf (diff) | |
fix(option1): Don't add only zeros to the numbers array
| -rw-r--r-- | exercises/option/option1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/option/option1.rs b/exercises/option/option1.rs index 2a6c2f7..602ff1a 100644 --- a/exercises/option/option1.rs +++ b/exercises/option/option1.rs @@ -15,7 +15,7 @@ fn main() { let mut numbers: [Option<u16>; 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; |
