@@ -1964,10 +1964,8 @@ impl str {
1964
1964
1965
1965
/// Returns a string slice with the prefix removed.
1966
1966
///
1967
- /// If the string starts with the pattern `prefix`, returns
1968
- /// substring after the prefix, wrapped in `Some`.
1969
- /// Unlike `trim_start_matches`, this method removes the
1970
- /// prefix exactly once.
1967
+ /// If the string starts with the pattern `prefix`, returns substring after the prefix, wrapped
1968
+ /// in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once.
1971
1969
///
1972
1970
/// If the string does not start with `prefix`, returns `None`.
1973
1971
///
@@ -1993,10 +1991,8 @@ impl str {
1993
1991
1994
1992
/// Returns a string slice with the suffix removed.
1995
1993
///
1996
- /// If the string ends with the pattern `suffix`, returns the
1997
- /// substring before the suffix, wrapped in `Some`.
1998
- /// Unlike `trim_end_matches`, this method removes the
1999
- /// suffix exactly once.
1994
+ /// If the string ends with the pattern `suffix`, returns the substring before the suffix,
1995
+ /// wrapped in `Some`. Unlike `trim_end_matches`, this method removes the suffix exactly once.
2000
1996
///
2001
1997
/// If the string does not end with `suffix`, returns `None`.
2002
1998
///
0 commit comments