mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rollup merge of #151620 - vinDelphini:fix-typo-library-core, r=joboet
Fix 'the the' typo in library/core/src/array/iter.rs This PR fixes a small grammatical error in a safety comment within `library/core/src/array/iter.rs` where the word "the" was duplicated. No functional changes.
This commit is contained in:
@@ -66,7 +66,7 @@ fn into_iter(self) -> Self::IntoIter {
|
||||
// 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) }
|
||||
|
||||
Reference in New Issue
Block a user