diff options
| author | AnthonyMikh <anthony.mikh@yandex.ru> | 2024-10-18 02:47:24 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 02:47:24 +0400 |
| commit | cdacdae01f44763603d797e310c056015d1f0e1d (patch) | |
| tree | 6e2f2152e39602fe69f800b7dccaf5f3ba975fd3 | |
| parent | 3ed6e3cc69857129c1d314daec00119ff47986ed (diff) | |
| download | rust-cdacdae01f44763603d797e310c056015d1f0e1d.tar.gz rust-cdacdae01f44763603d797e310c056015d1f0e1d.zip | |
remove outdated documentation for `repeat_n`
After rust/#106943 the part about `ExactSizeIterator` is no longer valid
| -rw-r--r-- | library/core/src/iter/sources/repeat_n.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/iter/sources/repeat_n.rs b/library/core/src/iter/sources/repeat_n.rs index 7e162ff387b..cc089c617c0 100644 --- a/library/core/src/iter/sources/repeat_n.rs +++ b/library/core/src/iter/sources/repeat_n.rs @@ -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 /// |
