Skip to content

Commit 3e477c1

Browse files
Fix a typo in raw_vec
1 parent 42a2a53 commit 3e477c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl<T, A: Allocator> RawVec<T, A> {
323323
pub fn reserve(&mut self, len: usize, additional: usize) {
324324
// Callers expect this function to be very cheap when there is already sufficient capacity.
325325
// Therefore, we move all the resizing and error-handling logic from grow_amortized and
326-
// handle_reserve behind a call, while making sure that the this function is likely to be
326+
// handle_reserve behind a call, while making sure that this function is likely to be
327327
// inlined as just a comparison and a call if the comparison fails.
328328
#[cold]
329329
fn do_reserve_and_handle<T, A: Allocator>(

0 commit comments

Comments
 (0)