diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-16 12:04:32 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-16 12:04:32 (GMT) |
commit | 7e47402264cf87b9bbb61fc9ff610af08add7c7b (patch) | |
tree | 8103f0f2df8ca09de0b8cfd9d38b4982c6993f16 /Modules/stropmodule.c | |
parent | c533e4a01207f74b9c4f9a7414631a3c7b711595 (diff) | |
download | cpython-7e47402264cf87b9bbb61fc9ff610af08add7c7b.zip cpython-7e47402264cf87b9bbb61fc9ff610af08add7c7b.tar.gz cpython-7e47402264cf87b9bbb61fc9ff610af08add7c7b.tar.bz2 |
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r-- | Modules/stropmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 612d0d3..62a17a3 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -167,7 +167,7 @@ static char joinfields__doc__[] = joinfields(list [,sep]) -> string\n\ \n\ Return a string composed of the words in list, with\n\ -intervening occurences of sep. Sep defaults to a single\n\ +intervening occurrences of sep. Sep defaults to a single\n\ space.\n\ \n\ (join and joinfields are synonymous)"; @@ -1040,10 +1040,10 @@ static int mymemcnt(char *mem, int len, char *pat, int pat_len) /* mymemreplace - Return a string in which all occurences of PAT in memory STR are + Return a string in which all occurrences of PAT in memory STR are replaced with SUB. - If length of PAT is less than length of STR or there are no occurences + If length of PAT is less than length of STR or there are no occurrences of PAT in STR, then the original string is returned. Otherwise, a new string is allocated here and returned. |