about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorxizheyin <xizheyin@smail.nju.edu.cn>2025-07-13 15:51:32 +0800
committerxizheyin <xizheyin@smail.nju.edu.cn>2025-07-13 15:51:32 +0800
commit10866f46172e92a7949dca2e5a52b8c444a5b082 (patch)
treec14b62c7e6878b8123dd7c90d2d953d848d6ea47 /library
parent0d11be5aabe0cd49609fff5fce57c4691a22fe55 (diff)
downloadrust-10866f46172e92a7949dca2e5a52b8c444a5b082.tar.gz
rust-10866f46172e92a7949dca2e5a52b8c444a5b082.zip
Fix typo in `std::vec`
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'library')
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index c8341750f4d..a4741f30fa5 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -3695,7 +3695,7 @@ impl<T, A: Allocator> Vec<T, A> {
     /// This is optimal if:
     ///
     /// * The tail (elements in the vector after `range`) is empty,
-    /// * or `replace_with` yields fewer or equal elements than `range`’s length
+    /// * or `replace_with` yields fewer or equal elements than `range`'s length
     /// * or the lower bound of its `size_hint()` is exact.
     ///
     /// Otherwise, a temporary vector is allocated and the tail is moved twice.