Skip to content

Commit 918f310

Browse files
author
fmoko
authored
Merge pull request #410 from tsauvajon/fix-option1
fix(option1): Don't add only zeros to the numbers array
2 parents a75fdbd + cce6a44 commit 918f310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/option/option1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn main() {
1515
let mut numbers: [Option<u16>; 5];
1616
for iter in 0..5 {
1717
let number_to_add: u16 = {
18-
((iter * 5) + 2) / (4 * 16)
18+
((iter * 1235) + 2) / (4 * 16)
1919
};
2020

2121
numbers[iter as usize] = number_to_add;

0 commit comments

Comments
 (0)