Skip to content

Commit 5837913

Browse files
committed
Fix typo in core::array::IntoIter comment
1 parent d67ecee commit 5837913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/array/iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<T, const N: usize> Iterator for IntoIter<T, N> {
139139
// SAFETY: Callers are only allowed to pass an index that is in bounds
140140
// Additionally Self: TrustedRandomAccess is only implemented for T: Copy which means even
141141
// multiple repeated reads of the same index would be safe and the
142-
// values aree !Drop, thus won't suffer from double drops.
142+
// values are !Drop, thus won't suffer from double drops.
143143
unsafe { self.data.get_unchecked(self.alive.start + idx).assume_init_read() }
144144
}
145145
}

0 commit comments

Comments
 (0)