remove outdated documentation for repeat_n

After rust/#106943 the part about `ExactSizeIterator` is no longer valid
This commit is contained in:
AnthonyMikh 2024-10-18 02:47:24 +04:00 committed by GitHub
parent 3ed6e3cc69
commit cdacdae01f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,9 +8,7 @@
/// 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
///