Skip to content

Commit

Permalink
fix rust-lang#1608: out-of-bound indexing is a runtime error (not a c…
Browse files Browse the repository at this point in the history
…ompile-time error)
  • Loading branch information
Spoonbender committed Oct 16, 2022
1 parent 5e7b296 commit 18ca00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn main() {
}
}
// Out of bound indexing causes compile error
// Out of bound indexing causes runtime error
//println!("{}", xs[5]);
}
```

0 comments on commit 18ca00a

Please sign in to comment.