about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMalobre <mael.obrejan@protonmail.com>2024-02-20 18:05:55 +0100
committerGitHub <noreply@github.com>2024-02-20 18:05:55 +0100
commit9ac73cbdc60bb7c32b72e9e963ed1a90da1c022f (patch)
treeb9e7bea578b42993e9882d782d888929fc1e4a5c
parent2b43e75c98cc5ae32328c8b49657bcd882eb5e75 (diff)
docs: add missing "the" to `str::strip_prefix` doc
-rw-r--r--library/core/src/str/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs
index e11d13f8bed..f965a50058b 100644
--- a/library/core/src/str/mod.rs
+++ b/library/core/src/str/mod.rs
@@ -2192,8 +2192,8 @@ impl str {
 
     /// Returns a string slice with the prefix removed.
     ///
-    /// If the string starts with the pattern `prefix`, returns substring after the prefix, wrapped
-    /// in `Some`.  Unlike `trim_start_matches`, this method removes the prefix exactly once.
+    /// If the string starts with the pattern `prefix`, returns the substring after the prefix,
+    /// wrapped in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once.
     ///
     /// If the string does not start with `prefix`, returns `None`.
     ///