mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
3f9b26dc64
The `advance_by(n)` docs state that in the error case `Err(k)` that k is always less than n. It also states that `advance_by(0)` may return `Err(0)` to indicate an exhausted iterator. These statements are inconsistent. Since only one implementation (Skip) actually made use of that I changed it to return Ok(()) in that case too. While adding some tests I also found a bug in `Take::advance_back_by`. |
||
---|---|---|
.. | ||
adapters | ||
traits | ||
mod.rs | ||
range.rs | ||
sources.rs |