Rollup merge of #131858 - AnthonyMikh:AnthonyMikh/repeat_n-is-not-tha… · qinheping/verify-rust-std@80bbaa9 (original) (raw)

Original file line number Diff line number Diff line change
@@ -8,9 +8,7 @@ use crate::num::NonZero;
8 8 /// The `repeat_n()` function repeats a single value exactly `n` times.
9 9 ///
10 10 /// This is very similar to using [`repeat()`] with [`Iterator::take()`],
11 -/// but there are two differences:
12 -/// - `repeat_n()` can return the original value, rather than always cloning.
13 -/// - `repeat_n()` produces an [`ExactSizeIterator`].
11 +/// but `repeat_n()` can return the original value, rather than always cloning.
14 12 ///
15 13 /// [`repeat()`]: crate::iter::repeat
16 14 ///