Skip to content

Commit e7cfb63

Browse files
authored
fix minor typo in vector.md
1 parent 0120c3a commit e7cfb63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/src/collections/vector.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn main() {
111111

112112

113113
### Slicing
114-
Immutable or mutable slices of Vecs can be taken, using `&` or `&mut, respectively.
114+
Immutable or mutable slices of Vecs can be taken, using `&` or `&mut`, respectively.
115115

116116
In Rust, it’s more common to pass immutable slices as arguments rather than vectors when you just want to provide read access, as this is more flexible (no move) and efficient (no copy). The same goes for `String` and `&str`.
117117

0 commit comments

Comments
 (0)