Skip to content

Commit cce6a44

Browse files
committed
fix(option1): Don't add only zeros to the numbers array
1 parent 06ef4cc commit cce6a44

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)