Skip to content

Commit 47a386d

Browse files
authored
fix #1608: out-of-bound indexing is a runtime error (not a compile-time error) (#1626)
1 parent 0867e6a commit 47a386d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/array.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn main() {
6464
}
6565
}
6666
67-
// Out of bound indexing causes compile error
67+
// Out of bound indexing causes runtime error
6868
//println!("{}", xs[5]);
6969
}
7070
```

0 commit comments

Comments
 (0)