Skip to content

Commit

Permalink
fix(option1): Don't add only zeros to the numbers array
Browse files Browse the repository at this point in the history
  • Loading branch information
tsauvajon committed May 27, 2020
1 parent 06ef4cc commit cce6a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/option/option1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cce6a44

Please sign in to comment.