about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-09-05 10:32:21 +0200
committerGitHub <noreply@github.com>2021-09-05 10:32:21 +0200
commit22dd6a4e30c9f4ddcafa3e2a536658bd15dc1a8d (patch)
tree9eb0306c2fb6a3b0a3d4a19fdfeaa94fcaaa6655
parentc1ccc1b3ff432755f89c6896647fc5d50d03053b (diff)
parent3e477c1772d977589b28e09677d68a86fa4644cd (diff)
downloadrust-22dd6a4e30c9f4ddcafa3e2a536658bd15dc1a8d.tar.gz
rust-22dd6a4e30c9f4ddcafa3e2a536658bd15dc1a8d.zip
Rollup merge of #88432 - terrarier2111:patch-1, r=joshtriplett
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>(