]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #23894 - tbu-:pr_iter_length_position, r=pnkfelix
authorbors <bors@rust-lang.org>
Wed, 6 May 2015 20:33:10 +0000 (20:33 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 May 2015 20:33:10 +0000 (20:33 +0000)
Added documentation of the panicking overflow to the `count` and `position`
methods of `IteratorExt`, also make them more obvious in the code.

Also mention that the `Iterator::next` method of the struct returned by
`IteratorExt::enumerate` can panic due to overflow.


Trivial merge