Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
a1phyr and joshtriplett committed Feb 12, 2022
1 parent d3e2ffc commit fe7d7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/raw_vec.rs
Expand Up @@ -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)
Expand Down

0 comments on commit fe7d7c2

Please sign in to comment.