We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d28d2b5 commit fc1273fCopy full SHA for fc1273f
core/src/str/mod.rs
@@ -271,7 +271,7 @@ impl str {
271
272
/// Finds the closest `x` not below `index` where `is_char_boundary(x)` is `true`.
273
///
274
- /// 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.
275
276
/// This method is the natural complement to [`floor_char_boundary`]. See that method
277
/// for more details.
0 commit comments