From 9b0f3d1266b99ca49edcb8e73686c54849e79a24 Mon Sep 17 00:00:00 2001 From: Jack Champagne Date: Thu, 13 Aug 2020 16:58:50 -0400 Subject: [PATCH] Fix documentation error --- library/core/src/str/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index eac4741cd26..a062a68673f 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -2030,7 +2030,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;