Skip to content

Commit

Permalink
Merge pull request #1885 from maple19out/master
Browse files Browse the repository at this point in the history
Fix ambiguous comment on 2.3 Arrays and Slices page
  • Loading branch information
marioidival authored Oct 26, 2024
2 parents 54cc32a + 3314ea6 commit 4e3881e
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 @@ -63,7 +63,7 @@ fn main() {
}
}
// Out of bound indexing on array causes compile time error.
// Out of bound indexing on array with constant value causes compile time error.
//println!("{}", xs[5]);
// Out of bound indexing on slice causes runtime error.
//println!("{}", xs[..][5]);
Expand Down

0 comments on commit 4e3881e

Please sign in to comment.