1
Fork 0

Rollup merge of #75499 - jack-champagne:jack-champagne/issue-75412, r=Dylan-DPC

Fix documentation error

This should fix #75412. Just a quick >= to > sign replacement.
This commit is contained in:
Yuki Okushi 2020-08-19 15:54:28 +09:00 committed by GitHub
commit ac264b53d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2031,7 +2031,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;