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