From a993e1de676c06bb8cc803fc1c11b70a25050489 Mon Sep 17 00:00:00 2001 From: AnthonyMikh Date: Fri, 18 Oct 2024 02:47:24 +0400 Subject: [PATCH] remove outdated documentation for `repeat_n` After rust/#106943 the part about `ExactSizeIterator` is no longer valid --- core/src/iter/sources/repeat_n.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/iter/sources/repeat_n.rs b/core/src/iter/sources/repeat_n.rs index 7e162ff387baf..cc089c617c0e3 100644 --- a/core/src/iter/sources/repeat_n.rs +++ b/core/src/iter/sources/repeat_n.rs @@ -8,9 +8,7 @@ use crate::num::NonZero; /// The `repeat_n()` function repeats a single value exactly `n` times. /// /// This is very similar to using [`repeat()`] with [`Iterator::take()`], -/// but there are two differences: -/// - `repeat_n()` can return the original value, rather than always cloning. -/// - `repeat_n()` produces an [`ExactSizeIterator`]. +/// but `repeat_n()` can return the original value, rather than always cloning. /// /// [`repeat()`]: crate::iter::repeat ///