Skip to content

Commit

Permalink
fix(option1): Add cast to usize, as it is confusing in the context of…
Browse files Browse the repository at this point in the history
… an exercise about Option
  • Loading branch information
wrobstory committed May 2, 2020
1 parent 1da84b5 commit f6cffc7
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 @@ -18,6 +18,6 @@ fn main() {
((iter * 5) + 2) / (4 * 16)
};

numbers[iter] = number_to_add;
numbers[iter as usize] = number_to_add;
}
}

0 comments on commit f6cffc7

Please sign in to comment.