about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/alloc/src/raw_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/raw_vec.rs b/library/alloc/src/raw_vec.rs
index ae1f8c0e513..0ce2beb63d6 100644
--- a/library/alloc/src/raw_vec.rs
+++ b/library/alloc/src/raw_vec.rs
@@ -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)