Skip to content

Commit c3100bd

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 4b6dff0 + 5837913 commit c3100bd

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)