fix(option1): Add cast to usize, as it is confusing in the context of an exercise about Option

This commit is contained in:
Rob Story 2020-05-02 16:39:37 -07:00
parent 1da84b5f7c
commit f6cffc7e48
1 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,6 @@ fn main() {
((iter * 5) + 2) / (4 * 16)
};
numbers[iter] = number_to_add;
numbers[iter as usize] = number_to_add;
}
}