Skip to content

Commit

Permalink
fix #1608: out-of-bound indexing is a runtime error (not a compile-ti…
Browse files Browse the repository at this point in the history
…me error) (#1626)
  • Loading branch information
Spoonbender authored Oct 17, 2022
1 parent 0867e6a commit 47a386d
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 47a386d

Please sign in to comment.