]> git.lizzy.rs Git - rust.git/commit
Make overflow behaviour more obvious in the iterator module of `libcore`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 31 Mar 2015 10:21:12 +0000 (12:21 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 6 May 2015 15:17:48 +0000 (17:17 +0200)
commit29d7fed994bb35c1cf7e686a3fe967ddff734d01
tree75aa7ed02533be3382defa41dfdcd87d5a1f7c73
parent6afa669524f550744834b5cd031dc3918e65905f
Make overflow behaviour more obvious in the iterator module of `libcore`

Explicitely spell out behaviour on overflow for `usize`-returning iterator
functions.

Mention that panics are guaranteed if debug assertions are active, otherwise a
wrong result might be returned.
src/libcore/iter.rs