Rollup merge of #88432 - terrarier2111:patch-1, r=joshtriplett

Fix a typo in raw_vec
This commit is contained in:
Mara Bos 2021-09-05 10:32:21 +02:00 committed by GitHub
commit 22dd6a4e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>(