Skip to content

Commit ac264b5

Browse files
authoredAug 19, 2020
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.
2 parents 1f4f317 + 9b0f3d1 commit ac264b5

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

0 commit comments

Comments
 (0)
Please sign in to comment.