Fix documentation error
This commit is contained in:
parent
b6396b75e7
commit
9b0f3d1266
1 changed files with 1 additions and 1 deletions
|
@ -2030,7 +2030,7 @@ mod traits {
|
|||
/// # 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<str> for ops::RangeFrom<usize> {
|
||||
type Output = str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue