diff options
| author | Arthur Carcano <arthur.carcano@ocamlpro.com> | 2024-10-30 16:40:55 +0100 |
|---|---|---|
| committer | Arthur Carcano <arthur.carcano@ocamlpro.com> | 2024-10-30 16:45:54 +0100 |
| commit | df8c20d7a5ddb84eb1e5fd2c366f51d357306f34 (patch) | |
| tree | bab8091413a1b2bb5c1a4f1b65479d3c14a7d343 /library/core/src | |
| parent | 3e33bda0326586a6e1e34d0f5c060ca6d116e6a4 (diff) | |
| download | rust-df8c20d7a5ddb84eb1e5fd2c366f51d357306f34.tar.gz rust-df8c20d7a5ddb84eb1e5fd2c366f51d357306f34.zip | |
Add intra-doc link in str::xxx_prefix
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/str/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 89addc4cb74..4c2d43b9ede 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -2169,7 +2169,7 @@ impl str { /// Returns a string slice with the prefix removed. /// /// 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. + /// wrapped in `Some`. Unlike [`trim_start_matches`], this method removes the prefix exactly once. /// /// If the string does not start with `prefix`, returns `None`. /// @@ -2178,6 +2178,7 @@ impl str { /// /// [`char`]: prim@char /// [pattern]: self::pattern + /// [`trim_start_matches`]: Self::trim_start_matches /// /// # Examples /// @@ -2196,7 +2197,7 @@ impl str { /// Returns a string slice with the suffix removed. /// /// If the string ends with the pattern `suffix`, returns the substring before the suffix, - /// wrapped in `Some`. Unlike `trim_end_matches`, this method removes the suffix exactly once. + /// wrapped in `Some`. Unlike [`trim_end_matches`], this method removes the suffix exactly once. /// /// If the string does not end with `suffix`, returns `None`. /// @@ -2205,6 +2206,7 @@ impl str { /// /// [`char`]: prim@char /// [pattern]: self::pattern + /// [`trim_end_matches`]: Self::trim_end_matches /// /// # Examples /// |
