Skip to content

Commit

Permalink
remove outdated documentation for repeat_n
Browse files Browse the repository at this point in the history
After rust/rust-lang#106943 the part about `ExactSizeIterator` is no longer valid
  • Loading branch information
AnthonyMikh authored Oct 17, 2024
1 parent 3ed6e3c commit cdacdae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/core/src/iter/sources/repeat_n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ use crate::num::NonZero;
/// 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
///
Expand Down

0 comments on commit cdacdae

Please sign in to comment.