Skip to content

Commit fe7d7c2

Browse files
a1phyrjoshtriplett
andcommitted
Fix typo
Co-authored-by: Josh Triplett <[email protected]>
1 parent d3e2ffc commit fe7d7c2

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
@@ -428,7 +428,7 @@ impl<T, A: Allocator> RawVec<T, A> {
428428

429429
let ptr = unsafe {
430430
// `Layout::array` cannot overflow here because it would have
431-
// owerflown earlier when capacity was larger.
431+
// overflowed earlier when capacity was larger.
432432
let new_layout = Layout::array::<T>(cap).unwrap_unchecked();
433433
self.alloc
434434
.shrink(ptr, layout, new_layout)

0 commit comments

Comments
 (0)