Skip to content

Commit a637487

Browse files
authored
vector/slicing - improve the phrasing
1 parent fd0c2c5 commit a637487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/src/collections/vector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ fn main() {
129129
130130
assert_eq!(slice1, slice2);
131131
132-
// Slices can also be mutable, in which
133-
// case mutating them will mutate the underlying Vec
132+
// A slice can also be mutable, in which
133+
// case mutating it will mutate its underlying Vec
134134
// Note: slice and &Vec are different
135135
let vec_ref: &mut Vec<i32> = &mut v;
136136
(*vec_ref).push(4);

0 commit comments

Comments
 (0)