Auto merge of #92108 - r00ster91:patch-6, r=jyn514

paniced -> panicked
This commit is contained in:
bors 2021-12-20 14:53:48 +00:00
commit 23f69235ad

View File

@ -1641,7 +1641,7 @@ impl<T, A: Allocator> Vec<T, A> {
let ptr = self.vec.as_mut_ptr();
let len = self.vec.len();
/* How many items were left when `same_bucket` paniced.
/* How many items were left when `same_bucket` panicked.
* Basically vec[read..].len() */
let items_left = len.wrapping_sub(self.read);