@@ -2169,7 +2169,7 @@ impl str {
21692169    /// Returns a string slice with the prefix removed. 
21702170     /// 
21712171     /// If the string starts with the pattern `prefix`, returns the substring after the prefix, 
2172-      /// wrapped in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once. 
2172+      /// wrapped in `Some`. Unlike [ `trim_start_matches`] , this method removes the prefix exactly once. 
21732173     /// 
21742174     /// If the string does not start with `prefix`, returns `None`. 
21752175     /// 
@@ -2178,6 +2178,7 @@ impl str {
21782178     /// 
21792179     /// [`char`]: prim@char 
21802180     /// [pattern]: self::pattern 
2181+      /// [`trim_start_matches`]: Self::trim_start_matches 
21812182     /// 
21822183     /// # Examples 
21832184     /// 
@@ -2196,7 +2197,7 @@ impl str {
21962197    /// Returns a string slice with the suffix removed. 
21972198     /// 
21982199     /// If the string ends with the pattern `suffix`, returns the substring before the suffix, 
2199-      /// wrapped in `Some`.  Unlike `trim_end_matches`, this method removes the suffix exactly once. 
2200+      /// wrapped in `Some`.  Unlike [ `trim_end_matches`] , this method removes the suffix exactly once. 
22002201     /// 
22012202     /// If the string does not end with `suffix`, returns `None`. 
22022203     /// 
@@ -2205,6 +2206,7 @@ impl str {
22052206     /// 
22062207     /// [`char`]: prim@char 
22072208     /// [pattern]: self::pattern 
2209+      /// [`trim_end_matches`]: Self::trim_end_matches 
22082210     /// 
22092211     /// # Examples 
22102212     /// 
0 commit comments