Skip to content

Commit

Permalink
Rollup merge of rust-lang#75499 - jack-champagne:jack-champagne/issue…
Browse files Browse the repository at this point in the history
…-75412, r=Dylan-DPC

Fix documentation error

This should fix rust-lang#75412. Just a quick >= to > sign replacement.
  • Loading branch information
tmandry authored Aug 19, 2020
2 parents cb5d1a7 + 9b0f3d1 commit 5fe695b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5fe695b

Please sign in to comment.