about summary refs log tree commit diff
diff options
context:
space:
mode:
authorterrarier2111 <58695553+terrarier2111@users.noreply.github.com>2021-08-28 20:20:22 +0200
committerGitHub <noreply@github.com>2021-08-28 20:20:22 +0200
commit3e477c1772d977589b28e09677d68a86fa4644cd (patch)
treee3c8f139f33ead639bf2391e0cc56ed0c1800548
parent42a2a53ec13b0e6e915acd09a2a9a963e5fa3b92 (diff)
downloadrust-3e477c1772d977589b28e09677d68a86fa4644cd.tar.gz
rust-3e477c1772d977589b28e09677d68a86fa4644cd.zip
Fix a typo in raw_vec
-rw-r--r--library/alloc/src/raw_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/raw_vec.rs b/library/alloc/src/raw_vec.rs
index 3caada06f6b..be21018512d 100644
--- a/library/alloc/src/raw_vec.rs
+++ b/library/alloc/src/raw_vec.rs
@@ -323,7 +323,7 @@ impl<T, A: Allocator> RawVec<T, A> {
     pub fn reserve(&mut self, len: usize, additional: usize) {
         // Callers expect this function to be very cheap when there is already sufficient capacity.
         // Therefore, we move all the resizing and error-handling logic from grow_amortized and
-        // handle_reserve behind a call, while making sure that the this function is likely to be
+        // handle_reserve behind a call, while making sure that this function is likely to be
         // inlined as just a comparison and a call if the comparison fails.
         #[cold]
         fn do_reserve_and_handle<T, A: Allocator>(