]> granicus.if.org Git - python/commitdiff
Correct occurance → occurrence; extracted from patch by Georg Brandl
authorMartin Panter <vadmium+py@gmail.com>
Thu, 8 Sep 2016 05:22:16 +0000 (05:22 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 8 Sep 2016 05:22:16 +0000 (05:22 +0000)
Objects/bytearrayobject.c
Objects/stringobject.c

index f13bc142c49227c24ca5c4fb8112e604f9d52058..9e3cead5b90445465f0ca4868b9867dabaf065a0 100644 (file)
@@ -1990,7 +1990,7 @@ replace(PyByteArrayObject *self,
     }
 
     if (to_len == 0) {
-        /* delete all occurances of 'from' bytes */
+        /* delete all occurrences of 'from' bytes */
         if (from_len == 1) {
             return replace_delete_single_character(
                     self, from_s[0], maxcount);
@@ -2399,7 +2399,7 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args)
 PyDoc_STRVAR(remove__doc__,
 "B.remove(int) -> None\n\
 \n\
-Remove the first occurance of a value in B.");
+Remove the first occurrence of a value in B.");
 static PyObject *
 bytearray_remove(PyByteArrayObject *self, PyObject *arg)
 {
index 4e5d917a68dcaab30ee00e21a8da95e1c1fc45d6..aa88152d04001f2b328255dc11958ca00ee40a6d 100644 (file)
@@ -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);