This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit dbb0583
committed
docs: Reword
"Some is returned with <some value>" is an awkward construction.
The use of the passive voice is a bit odd, and doesn't seem like the
house style.
So say instead "returns X, wrapped in `Some`", for which there is some
other precedent in stdlib.
Instead of repeating "with the prefix removed", say "after the
prefix". This is a bit clearer that the original is not modified.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>str::strip_prefix and strip_suffix a bit1 parent a8d6da3 commit dbb0583
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1964 | 1964 | | |
1965 | 1965 | | |
1966 | 1966 | | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
1970 | 1971 | | |
1971 | | - | |
| 1972 | + | |
1972 | 1973 | | |
1973 | 1974 | | |
1974 | 1975 | | |
| |||
1992 | 1993 | | |
1993 | 1994 | | |
1994 | 1995 | | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
1998 | 2000 | | |
1999 | | - | |
| 2001 | + | |
2000 | 2002 | | |
2001 | 2003 | | |
2002 | 2004 | | |
| |||
0 commit comments