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 d173747 + 6e19226 commit d90bbb7Copy full SHA for d90bbb7
src/primitives/array.md
@@ -42,6 +42,9 @@ fn main() {
42
analyze_slice(&xs);
43
44
// Slices can point to a section of an array
45
+ // They are of the form [starting_index..ending_index]
46
+ // starting_index is the first position in the slice
47
+ // ending_index is one more than the last position in the slice
48
println!("borrow a section of the array as a slice");
49
analyze_slice(&ys[1 .. 4]);
50
0 commit comments