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 @@ -370,6 +370,9 @@ impl<Idx> RangeInclusive<Idx> {
370
370
/// whether the inclusive range is empty, use the [`is_empty()`] method
371
371
/// instead of comparing `start() > end()`.
372
372
///
373
+ /// Note: the value returned by this method is unspecified after the range
374
+ /// has been iterated to exhaustion.
375
+ ///
373
376
/// [`end()`]: #method.end
374
377
/// [`is_empty()`]: #method.is_empty
375
378
///
@@ -391,6 +394,9 @@ impl<Idx> RangeInclusive<Idx> {
391
394
/// whether the inclusive range is empty, use the [`is_empty()`] method
392
395
/// instead of comparing `start() > end()`.
393
396
///
397
+ /// Note: the value returned by this method is unspecified after the range
398
+ /// has been iterated to exhaustion.
399
+ ///
394
400
/// [`start()`]: #method.start
395
401
/// [`is_empty()`]: #method.is_empty
396
402
///
@@ -405,7 +411,10 @@ impl<Idx> RangeInclusive<Idx> {
405
411
& self . end
406
412
}
407
413
408
- /// Destructures the RangeInclusive into (lower bound, upper (inclusive) bound).
414
+ /// Destructures the `RangeInclusive` into (lower bound, upper (inclusive) bound).
415
+ ///
416
+ /// Note: the value returned by this method is unspecified after the range
417
+ /// has been iterated to exhaustion.
409
418
///
410
419
/// # Examples
411
420
///
You can’t perform that action at this time.
0 commit comments