Skip to content

Commit

Permalink
Rollup merge of rust-lang#85712 - BlackHoleFox:fix-iter-typo, r=jyn514
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dylan-DPC authored May 26, 2021
2 parents f3b10dd + d1b69cf commit 9ee87c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/array/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}
}
Expand Down

0 comments on commit 9ee87c7

Please sign in to comment.