The8472 3f9b26dc64 Fix Iterator::advance_by contract inconsistency
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`.
2021-11-19 13:00:23 +01:00
..
2021-05-20 19:42:29 -07:00
2021-08-24 17:56:39 +02:00
2021-08-18 03:55:36 +01:00
2021-05-20 19:42:29 -07:00
2021-08-13 15:27:30 +02:00