Skip to content

Commit

Permalink
Auto merge of rust-lang#32592 - tbu-:pr_range_from_overflow, r=alexcr…
Browse files Browse the repository at this point in the history
…ichton

Add a note about overflowing in the `RangeFrom` iterator
  • Loading branch information
bors committed Apr 13, 2016
2 parents 35dca7f + 6acd90f commit 2b60207
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libcore/ops.rs
Original file line number Diff line number Diff line change
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 2b60207

Please sign in to comment.