repeat_n
's documentation lists impl ExactSizeIterator
as a difference with repeat
+ Iterator::take
, which is no longer the case
#131872
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
Location
https://doc.rust-lang.org/nightly/std/iter/fn.repeat_n.html
Summary
The newly stabalised
std::iter::repeat_n
states:But the second item is no longer true, since
impl ExactSizeIterator for Take<Repeat<T>>
andimpl ExactSizeIterator for Take<RepeatWith<F>>
now exist and are stable.The text was updated successfully, but these errors were encountered: