Skip to content

Commit bdcdd1b

Browse files
authored
Rollup merge of rust-lang#94300 - WaffleLapkin:patch-4, r=scottmcm
Fix a typo in documentation of `array::IntoIter::new_unchecked` 🌸
2 parents fe9d909 + 715262f commit bdcdd1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/array/iter.rs

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

0 commit comments

Comments
 (0)