Skip to content

Commit fc1273f

Browse files
m-ou-secuviper
andauthoredAug 15, 2023
Fix typo.
Co-authored-by: Josh Stone <cuviper@gmail.com>
1 parent d28d2b5 commit fc1273f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl str {
271271

272272
/// Finds the closest `x` not below `index` where `is_char_boundary(x)` is `true`.
273273
///
274-
/// If `x` is greater than the length of the string, this returns the length of the string.
274+
/// If `index` is greater than the length of the string, this returns the length of the string.
275275
///
276276
/// This method is the natural complement to [`floor_char_boundary`]. See that method
277277
/// for more details.

0 commit comments

Comments
 (0)
Please sign in to comment.