Rollup merge of #94300 - WaffleLapkin:patch-4, r=scottmcm

Fix a typo in documentation of `array::IntoIter::new_unchecked`

🌸
This commit is contained in:
Matthias Krüger 2022-02-24 07:48:12 +01:00 committed by GitHub
commit bdcdd1b122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ impl<T, const N: usize> IntoIter<T, N> {
///
/// - The `buffer[initialized]` elements must all be initialized.
/// - The range must be canonical, with `initialized.start <= initialized.end`.
/// - The range must in in-bounds for the buffer, with `initialized.end <= N`.
/// - The range must be in-bounds for the buffer, with `initialized.end <= N`.
/// (Like how indexing `[0][100..100]` fails despite the range being empty.)
///
/// It's sound to have more elements initialized than mentioned, though that