Skip to content

Commit

Permalink
Fix ambiguous comment on primitives > Arrays and Slices
Browse files Browse the repository at this point in the history
  • Loading branch information
maple19out committed Sep 9, 2024
1 parent c79ec34 commit 3314ea6
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 3314ea6

Please sign in to comment.