Skip to content

Commit

Permalink
Rollup merge of #94300 - WaffleLapkin:patch-4, r=scottmcm
Browse files Browse the repository at this point in the history
Fix a typo in documentation of `array::IntoIter::new_unchecked`

🌸
  • Loading branch information
matthiaskrgr authored Feb 24, 2022
2 parents fe9d909 + 715262f commit bdcdd1b
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 @@ -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
Expand Down

0 comments on commit bdcdd1b

Please sign in to comment.