Fix typo
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
d3e2ffcbc6
commit
fe7d7c2004
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ impl<T, A: Allocator> RawVec<T, A> {
|
|||
|
||||
let ptr = unsafe {
|
||||
// `Layout::array` cannot overflow here because it would have
|
||||
// owerflown earlier when capacity was larger.
|
||||
// overflowed earlier when capacity was larger.
|
||||
let new_layout = Layout::array::<T>(cap).unwrap_unchecked();
|
||||
self.alloc
|
||||
.shrink(ptr, layout, new_layout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue