We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6396b7 commit 9b0f3d1Copy full SHA for 9b0f3d1
library/core/src/str/mod.rs
@@ -2030,7 +2030,7 @@ mod traits {
2030
/// # Panics
2031
///
2032
/// Panics if `begin` does not point to the starting byte offset of
2033
- /// a character (as defined by `is_char_boundary`), or if `begin >= len`.
+ /// a character (as defined by `is_char_boundary`), or if `begin > len`.
2034
#[stable(feature = "str_checked_slicing", since = "1.20.0")]
2035
unsafe impl SliceIndex<str> for ops::RangeFrom<usize> {
2036
type Output = str;
0 commit comments