Skip to content

Commit

Permalink
Fix a typo in documentation of array::IntoIter::new_unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin authored Feb 23, 2022
1 parent c651ba8 commit 715262f
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 715262f

Please sign in to comment.