diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-20 19:35:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 19:35:42 +0100 |
| commit | c03f61ba698e0e4a8de5fab63c4d4d63c0805dfd (patch) | |
| tree | ae3169e55db5932a1b589728ce6c0c90133b237d | |
| parent | 433180e0cb3ebca2190c7917388a3bc12500cd23 (diff) | |
| parent | 9ac73cbdc60bb7c32b72e9e963ed1a90da1c022f (diff) | |
| download | rust-c03f61ba698e0e4a8de5fab63c4d4d63c0805dfd.tar.gz rust-c03f61ba698e0e4a8de5fab63c4d4d63c0805dfd.zip | |
Rollup merge of #121352 - malobre:patch-1, r=Nilstrieb
docs: add missing "the" to `str::strip_prefix` doc Fix #121348
| -rw-r--r-- | library/core/src/str/mod.rs | 4 |
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`. /// |
