]> git.lizzy.rs Git - rust.git/commit
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)
commit6c9f8408d5cd07f3fd3b5136b4373dadd0edbf07
tree45ad34bf2c3fac2d6534fac51cf7bda2a3dfa131
parente6378cbda39521fa3b9a457b5ed36ecefe37f932
parent29d7fed994bb35c1cf7e686a3fe967ddff734d01
Auto merge of #23894 - tbu-:pr_iter_length_position, r=pnkfelix

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.