Fix typo.

Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
Mara Bos 2023-08-15 15:11:55 +02:00 committed by GitHub
parent d47371de69
commit 2f75dd4e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ impl str {
/// Finds the closest `x` not below `index` where `is_char_boundary(x)` is `true`.
///
/// If `x` is greater than the length of the string, this returns the length of the string.
/// If `index` is greater than the length of the string, this returns the length of the string.
///
/// This method is the natural complement to [`floor_char_boundary`]. See that method
/// for more details.