Skip to content

Commit 715262f

Browse files
authored
Fix a typo in documentation of array::IntoIter::new_unchecked
1 parent c651ba8 commit 715262f

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)