]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18452: fix several "occurrence" typos (reported by Févry Thibault).
authorNed Deily <nad@acm.org>
Sun, 14 Jul 2013 19:42:27 +0000 (12:42 -0700)
committerNed Deily <nad@acm.org>
Sun, 14 Jul 2013 19:42:27 +0000 (12:42 -0700)
Doc/howto/argparse.rst
Doc/library/stdtypes.rst

index 4f64948c9d2ad85a4c7422b48289f17a8824d696..3c2b592990d9f2543b5f15890afac2e1f47f308f 100644 (file)
@@ -468,7 +468,7 @@ verbosity argument (check the output of ``python --help``)::
        print answer
 
 We have introduced another action, "count",
-to count the number of occurences of a specific optional arguments:
+to count the number of occurrences of a specific optional arguments:
 
 .. code-block:: sh
 
index 76345e58f7f87e1810d15987b4710b3ba37b84a7..0001453e5d02dcbece8def4466c0cb1ce3bdeb4a 100644 (file)
@@ -743,10 +743,10 @@ are sequences of the same type; *n*, *i* and *j* are integers:
 +------------------+--------------------------------+----------+
 | ``max(s)``       | largest item of *s*            |          |
 +------------------+--------------------------------+----------+
-| ``s.index(i)``   | index of the first occurence   |          |
+| ``s.index(i)``   | index of the first occurrence  |          |
 |                  | of *i* in *s*                  |          |
 +------------------+--------------------------------+----------+
-| ``s.count(i)``   | total number of occurences of  |          |
+| ``s.count(i)``   | total number of occurrences of |          |
 |                  | *i* in *s*                     |          |
 +------------------+--------------------------------+----------+