From e7cfb63ac88d1a848667a890fce4655d80fbf585 Mon Sep 17 00:00:00 2001 From: mckzm <134839822+mckzm@users.noreply.github.com> Date: Sat, 15 Jun 2024 14:18:14 +0900 Subject: [PATCH] fix minor typo in vector.md --- en/src/collections/vector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/src/collections/vector.md b/en/src/collections/vector.md index 6b19134..e9de6f8 100644 --- a/en/src/collections/vector.md +++ b/en/src/collections/vector.md @@ -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, 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`.