Rollup merge of #131858 - AnthonyMikh:AnthonyMikh/repeat_n-is-not-that-special-anymore, r=jhpratt
Remove outdated documentation for `repeat_n` After #106943, which made `Take<Repeat<I>>` implement `ExactSizeIterator`, part of documentation about difference from `repeat(x).take(n)` is no longer valid. ````@rustbot```` labels: +A-docs, +A-iterators
This commit is contained in:
commit
64bf99b476
@ -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