Skip to content

Commit

Permalink
Add a note about overflowing in the RangeFrom iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Apr 13, 2016
1 parent 525aa61 commit 6acd90f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libcore/ops.rs
Expand Up @@ -1539,6 +1539,11 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
///
/// See the [`contains()`](#method.contains) method for its characterization.
///
/// Note: Currently, no overflow checking is done for the iterator
/// implementation; if you use an integer range and the integer overflows, it
/// might panic in debug mode or create an endless loop in release mode. This
/// overflow behavior might change in the future.
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit 6acd90f

Please sign in to comment.