Fix typo. · rust-lang/rust@2f75dd4 (original) (raw)
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -271,7 +271,7 @@ impl str { | ||
271 | 271 | |
272 | 272 | /// Finds the closest `x` not below `index` where `is_char_boundary(x)` is `true`. |
273 | 273 | /// |
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. | |
275 | 275 | /// |
276 | 276 | /// This method is the natural complement to [`floor_char_boundary`]. See that method |
277 | 277 | /// for more details. |