diff options
| author | Jack Champagne <jackchampagne.r@gmail.com> | 2020-08-13 16:58:50 -0400 |
|---|---|---|
| committer | Jack Champagne <jackchampagne.r@gmail.com> | 2020-08-13 16:58:50 -0400 |
| commit | 9b0f3d1266b99ca49edcb8e73686c54849e79a24 (patch) | |
| tree | 17fe752dcaecf6f0e065ff28f12ecc4425fed1ec | |
| parent | b6396b75e782954acb085447fb836c4e0ff5281d (diff) | |
| download | rust-9b0f3d1266b99ca49edcb8e73686c54849e79a24.tar.gz rust-9b0f3d1266b99ca49edcb8e73686c54849e79a24.zip | |
Fix documentation error
| -rw-r--r-- | library/core/src/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index eac4741cd26..a062a68673f 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -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; |
