@@ -2486,7 +2486,7 @@ impl str {
2486
2486
/// Callers of this function are responsible that these preconditions are
2487
2487
/// satisfied:
2488
2488
///
2489
- /// * The starting index must come before the ending index;
2489
+ /// * The starting index must not exceed the ending index;
2490
2490
/// * Indexes must be within bounds of the original slice;
2491
2491
/// * Indexes must lie on UTF-8 sequence boundaries.
2492
2492
///
@@ -2518,7 +2518,7 @@ impl str {
2518
2518
/// Callers of this function are responsible that these preconditions are
2519
2519
/// satisfied:
2520
2520
///
2521
- /// * The starting index must come before the ending index;
2521
+ /// * The starting index must not exceed the ending index;
2522
2522
/// * Indexes must be within bounds of the original slice;
2523
2523
/// * Indexes must lie on UTF-8 sequence boundaries.
2524
2524
///
@@ -2563,7 +2563,7 @@ impl str {
2563
2563
/// Callers of this function are responsible that three preconditions are
2564
2564
/// satisfied:
2565
2565
///
2566
- /// * `begin` must come before `end`.
2566
+ /// * `begin` must not exceed `end`.
2567
2567
/// * `begin` and `end` must be byte positions within the string slice.
2568
2568
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
2569
2569
///
@@ -2612,7 +2612,7 @@ impl str {
2612
2612
/// Callers of this function are responsible that three preconditions are
2613
2613
/// satisfied:
2614
2614
///
2615
- /// * `begin` must come before `end`.
2615
+ /// * `begin` must not exceed `end`.
2616
2616
/// * `begin` and `end` must be byte positions within the string slice.
2617
2617
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
2618
2618
#[ stable( feature = "str_slice_mut" , since = "1.5.0" ) ]
0 commit comments