summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-08 05:22:16 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-08 05:22:16 (GMT)
commit440bbd0e388ee516bf93be0f96ea7de7fafc4f32 (patch)
tree63fc37b4b49b377f56f483332cd44ca4e62e8d5e /Objects/stringobject.c
parent6507657dddebc629e49f3dc683d89a96a481fb86 (diff)
downloadcpython-440bbd0e388ee516bf93be0f96ea7de7fafc4f32.zip
cpython-440bbd0e388ee516bf93be0f96ea7de7fafc4f32.tar.gz
cpython-440bbd0e388ee516bf93be0f96ea7de7fafc4f32.tar.bz2
Correct occurance → occurrence; extracted from patch by Georg Brandl
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 4e5d917..aa88152 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -2775,7 +2775,7 @@ replace(PyStringObject *self,
}
if (to_len == 0) {
- /* delete all occurances of 'from' string */
+ /* delete all occurrences of 'from' string */
if (from_len == 1) {
return replace_delete_single_character(
self, from_s[0], maxcount);