Fix 'the the' typo in library/core/src/array/iter.rs
This commit is contained in:
parent
021fc25b7a
commit
a06fdc1806
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ impl<T, const N: usize> IntoIterator for [T; N] {
|
|||
// FIXME: If normal `transmute` ever gets smart enough to allow this
|
||||
// directly, use it instead of `transmute_unchecked`.
|
||||
let data: [MaybeUninit<T>; N] = unsafe { transmute_unchecked(self) };
|
||||
// SAFETY: The original array was entirely initialized and the the alive
|
||||
// SAFETY: The original array was entirely initialized and the alive
|
||||
// range we're passing here represents that fact.
|
||||
let inner = unsafe { InnerSized::new_unchecked(IndexRange::zero_to(N), data) };
|
||||
IntoIter { inner: ManuallyDrop::new(inner) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue