Skip to content

Commit fe2414d

Browse files
authored
1 parent 60c7187 commit fe2414d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2020-07-16-Rust-1.45.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ In the end, the decision was made to do this:
103103

104104
This is very similar to array access, for example:
105105

106-
* `array[i]` will check to make sure that `array` has at least `i` elements.
106+
* `array[i]` will check to make sure that `array` has at least `i + 1` elements.
107107
* You can use `unsafe { array.get_unchecked(i) }` to skip the check.
108108

109109
So, what's a saturating cast? Let's look at a slightly modified example:

0 commit comments

Comments
 (0)