fix minor typo in vector.md

This commit is contained in:
mckzm
2024-06-15 14:18:14 +09:00
committed by GitHub
parent 0120c3a979
commit e7cfb63ac8

View File

@ -111,7 +111,7 @@ fn main() {
### Slicing
Immutable or mutable slices of Vecs can be taken, using `&` or `&mut, respectively.
Immutable or mutable slices of Vecs can be taken, using `&` or `&mut`, respectively.
In Rust, its 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`.