We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35dca7f + 6acd90f commit 2b60207Copy full SHA for 2b60207
src/libcore/ops.rs
@@ -1539,6 +1539,11 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
1539
///
1540
/// See the [`contains()`](#method.contains) method for its characterization.
1541
1542
+/// Note: Currently, no overflow checking is done for the iterator
1543
+/// implementation; if you use an integer range and the integer overflows, it
1544
+/// might panic in debug mode or create an endless loop in release mode. This
1545
+/// overflow behavior might change in the future.
1546
+///
1547
/// # Examples
1548
1549
/// ```
0 commit comments