Commit 2168210
authored
Rollup merge of #75078 - ijackson:slice-strip, r=steveklabnik
Improve documentation for slice strip_* functions
Prompted by the stabilisation tracking issue #73413 I looked at the docs for `strip_prefix` and `strip_suffix` for both `str` and `slice`, and I felt they could be slightly improved.
Thanks for your attention.2 files changed
+14
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | | - | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
1773 | 1775 | | |
1774 | 1776 | | |
1775 | 1777 | | |
| |||
1799 | 1801 | | |
1800 | 1802 | | |
1801 | 1803 | | |
1802 | | - | |
1803 | | - | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
1804 | 1808 | | |
1805 | 1809 | | |
1806 | 1810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1965 | 1965 | | |
1966 | 1966 | | |
1967 | 1967 | | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
| 1968 | + | |
| 1969 | + | |
1971 | 1970 | | |
1972 | | - | |
| 1971 | + | |
1973 | 1972 | | |
1974 | 1973 | | |
1975 | 1974 | | |
| |||
1993 | 1992 | | |
1994 | 1993 | | |
1995 | 1994 | | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
| 1995 | + | |
| 1996 | + | |
1999 | 1997 | | |
2000 | | - | |
| 1998 | + | |
2001 | 1999 | | |
2002 | 2000 | | |
2003 | 2001 | | |
| |||
0 commit comments