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
A-iterators
Area: Iterators
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
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: