Skip to content

Commit 2f75dd4

Browse files
m-ou-secuviper
andauthored
Fix typo.
Co-authored-by: Josh Stone <[email protected]>
1 parent d47371d commit 2f75dd4

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
@@ -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)