We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d1218f + 4ac14d6 commit 0ea8bbbCopy full SHA for 0ea8bbb
src/primitives/array.md
@@ -63,7 +63,9 @@ fn main() {
63
}
64
65
66
- // Out of bound indexing causes compile time error.
+ // Out of bound indexing on array causes compile time error.
67
//println!("{}", xs[5]);
68
+ // Out of bound indexing on slice causes runtime error.
69
+ //println!("{}", xs[..][5]);
70
71
```
0 commit comments