remove outdated documentation for repeat_n
After rust/#106943 the part about `ExactSizeIterator` is no longer valid
This commit is contained in:
parent
3ed6e3cc69
commit
cdacdae01f
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user