about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlphyr <47725341+a1phyr@users.noreply.github.com>2021-08-07 18:57:48 +0200
committerBenoƮt du Garreau <bdgdlm@outlook.com>2022-02-12 12:31:33 +0100
commitfe7d7c20046c59ee91d763f5ab70aff42a73bca7 (patch)
treec18afc2b1e6858707c6f2c8431e83ac0f2db60ca
parentd3e2ffcbc69eadc63a7265a7902739080b9338de (diff)
downloadrust-fe7d7c20046c59ee91d763f5ab70aff42a73bca7.tar.gz
rust-fe7d7c20046c59ee91d763f5ab70aff42a73bca7.zip
Fix typo
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
-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)