X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fcore%2Fsrc%2Fstr%2Fmod.rs;h=4705c984bd426ffa2f6421cc19640eede2816b87;hb=ac264b53d114ed00828b3236b8b2279df09f1623;hp=934f581f3faeb7575aa8f99726e22c69f51b50a2;hpb=18e3799dc8818dda7852b11ea9026aa24e7bf4c2;p=rust.git diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 934f581f3fa..4705c984bd4 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -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 for ops::RangeFrom { type Output = str;