]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/str/mod.rs
Rollup merge of #75499 - jack-champagne:jack-champagne/issue-75412, r=Dylan-DPC
[rust.git] / library / core / src / str / mod.rs
index 934f581f3faeb7575aa8f99726e22c69f51b50a2..4705c984bd426ffa2f6421cc19640eede2816b87 100644 (file)
@@ -2031,7 +2031,7 @@ fn index_mut(self, slice: &mut str) -> &mut Self::Output {
     /// # Panics
     ///
     /// Panics if `begin` does not point to the starting byte offset of
-    /// a character (as defined by `is_char_boundary`), or if `begin >= len`.
+    /// a character (as defined by `is_char_boundary`), or if `begin > len`.
     #[stable(feature = "str_checked_slicing", since = "1.20.0")]
     unsafe impl SliceIndex<str> for ops::RangeFrom<usize> {
         type Output = str;