about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2023-08-15 15:11:55 +0200
committerGitHub <noreply@github.com>2023-08-15 15:11:55 +0200
commit2f75dd4e193fc0626dab44b6d76bc2b377fd1f3d (patch)
tree9cb906a94306598d8dd755c68d9b2fa2794d6312
parentd47371de6975524e2dd3848d48c43b724f7aa8f3 (diff)
downloadrust-2f75dd4e193fc0626dab44b6d76bc2b377fd1f3d.tar.gz
rust-2f75dd4e193fc0626dab44b6d76bc2b377fd1f3d.zip
Fix typo.
Co-authored-by: Josh Stone <cuviper@gmail.com>
-rw-r--r--library/core/src/str/mod.rs2
1 files changed, 1 insertions, 1 deletions
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.