From 2f75dd4e193fc0626dab44b6d76bc2b377fd1f3d Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 15 Aug 2023 15:11:55 +0200 Subject: [PATCH] Fix typo. Co-authored-by: Josh Stone --- library/core/src/str/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 99219914fd2..7ae2002d212 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -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.