about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-05-26 13:32:12 +0200
committerGitHub <noreply@github.com>2021-05-26 13:32:12 +0200
commit9ee87c7e006491931cd9dbfa90e5bda9e452a6fd (patch)
treec7147f4dc0f77bc3ed1cfd14731b161e30967308
parentf3b10dd709b4071df2d7cce1995463a023ed8eee (diff)
parentd1b69cf89b962210629149f191a7cd6647d8d5d1 (diff)
downloadrust-9ee87c7e006491931cd9dbfa90e5bda9e452a6fd.tar.gz
rust-9ee87c7e006491931cd9dbfa90e5bda9e452a6fd.zip
Rollup merge of #85712 - BlackHoleFox:fix-iter-typo, r=jyn514
Fix typo in core::array::IntoIter comment

Saw a small typo reading some internal comments and decided to just throw this up to fix it for future readers.
-rw-r--r--library/core/src/array/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/array/iter.rs b/library/core/src/array/iter.rs
index c36542f6314..aedbeab6610 100644
--- a/library/core/src/array/iter.rs
+++ b/library/core/src/array/iter.rs
@@ -139,7 +139,7 @@ impl<T, const N: usize> Iterator for IntoIter<T, N> {
         // SAFETY: Callers are only allowed to pass an index that is in bounds
         // Additionally Self: TrustedRandomAccess is only implemented for T: Copy which means even
         // multiple repeated reads of the same index would be safe and the
-        // values aree !Drop, thus won't suffer from double drops.
+        // values are !Drop, thus won't suffer from double drops.
         unsafe { self.data.get_unchecked(self.alive.start + idx).assume_init_read() }
     }
 }