File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,9 @@ impl<Idx> RangeInclusive<Idx> {
360
360
/// whether the inclusive range is empty, use the [`is_empty()`] method
361
361
/// instead of comparing `start() > end()`.
362
362
///
363
+ /// Note: the value returned by this method is unspecified after the range
364
+ /// has been iterated to exhaustion.
365
+ ///
363
366
/// [`end()`]: #method.end
364
367
/// [`is_empty()`]: #method.is_empty
365
368
///
@@ -381,6 +384,9 @@ impl<Idx> RangeInclusive<Idx> {
381
384
/// whether the inclusive range is empty, use the [`is_empty()`] method
382
385
/// instead of comparing `start() > end()`.
383
386
///
387
+ /// Note: the value returned by this method is unspecified after the range
388
+ /// has been iterated to exhaustion.
389
+ ///
384
390
/// [`start()`]: #method.start
385
391
/// [`is_empty()`]: #method.is_empty
386
392
///
@@ -395,7 +401,10 @@ impl<Idx> RangeInclusive<Idx> {
395
401
& self . end
396
402
}
397
403
398
- /// Destructures the RangeInclusive into (lower bound, upper (inclusive) bound).
404
+ /// Destructures the `RangeInclusive` into (lower bound, upper (inclusive) bound).
405
+ ///
406
+ /// Note: the value returned by this method is unspecified after the range
407
+ /// has been iterated to exhaustion.
399
408
///
400
409
/// # Examples
401
410
///
You can’t perform that action at this time.
0 commit comments