From 715262f151b985be646f75ef4b22aefa371b7cd6 Mon Sep 17 00:00:00 2001 From: Waffle Maybe Date: Wed, 23 Feb 2022 21:10:04 +0300 Subject: [PATCH] Fix a typo in documentation of `array::IntoIter::new_unchecked` --- library/core/src/array/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/array/iter.rs b/library/core/src/array/iter.rs index 72a634443e877..e5024c215be9c 100644 --- a/library/core/src/array/iter.rs +++ b/library/core/src/array/iter.rs @@ -93,7 +93,7 @@ impl IntoIter { /// /// - 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