diff options
| author | Waffle Maybe <waffle.lapkin@gmail.com> | 2022-02-23 21:10:04 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-23 21:10:04 +0300 |
| commit | 715262f151b985be646f75ef4b22aefa371b7cd6 (patch) | |
| tree | a281e28d00b49fd19d5bf2996bce00a4dba32923 /library/core/src/array/iter.rs | |
| parent | c651ba8a542c7d89b271efbf024a31091c824f4b (diff) | |
| download | rust-715262f151b985be646f75ef4b22aefa371b7cd6.tar.gz rust-715262f151b985be646f75ef4b22aefa371b7cd6.zip | |
Fix a typo in documentation of `array::IntoIter::new_unchecked`
Diffstat (limited to 'library/core/src/array/iter.rs')
| -rw-r--r-- | library/core/src/array/iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/array/iter.rs b/library/core/src/array/iter.rs index 72a634443e8..e5024c215be 100644 --- a/library/core/src/array/iter.rs +++ b/library/core/src/array/iter.rs @@ -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 |
