Skip to content
/ rust Public
forked from rust-lang/rust

Commit cdacdae

Browse files
authored
remove outdated documentation for repeat_n
After rust/rust-lang#106943 the part about `ExactSizeIterator` is no longer valid
1 parent 3ed6e3c commit cdacdae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/iter/sources/repeat_n.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ use crate::num::NonZero;
88
/// The `repeat_n()` function repeats a single value exactly `n` times.
99
///
1010
/// 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.
1412
///
1513
/// [`repeat()`]: crate::iter::repeat
1614
///

0 commit comments

Comments
 (0)