Skip to content

Commit 9b0f3d1

Browse files
Fix documentation error
1 parent b6396b7 commit 9b0f3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ mod traits {
20302030
/// # Panics
20312031
///
20322032
/// 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`.
2033+
/// a character (as defined by `is_char_boundary`), or if `begin > len`.
20342034
#[stable(feature = "str_checked_slicing", since = "1.20.0")]
20352035
unsafe impl SliceIndex<str> for ops::RangeFrom<usize> {
20362036
type Output = str;

0 commit comments

Comments
 (0)