Skip to content

Commit

Permalink
Fix typo in core::array::IntoIter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHoleFox committed May 26, 2021
1 parent 54bdfa1 commit d1b69cf
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 d1b69cf

Please sign in to comment.