summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-07-14 19:42:27 (GMT)
committerNed Deily <nad@acm.org>2013-07-14 19:42:27 (GMT)
commitc967a593c95cbfe7558fcda72944da80dcb74ab8 (patch)
tree892a1fcf5a4302f9463d343102f9803254da785a
parenta25a31a901fb0b1b845d93d0308a27d55553d1a6 (diff)
downloadcpython-c967a593c95cbfe7558fcda72944da80dcb74ab8.zip
cpython-c967a593c95cbfe7558fcda72944da80dcb74ab8.tar.gz
cpython-c967a593c95cbfe7558fcda72944da80dcb74ab8.tar.bz2
Issue #18452: fix several "occurrence" typos (reported by FĂ©vry Thibault).
-rw-r--r--Doc/howto/argparse.rst2
-rw-r--r--Doc/library/stdtypes.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/argparse.rst b/Doc/howto/argparse.rst
index 4f64948..3c2b592 100644
--- a/Doc/howto/argparse.rst
+++ b/Doc/howto/argparse.rst
@@ -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
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 76345e5..0001453 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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* | |
+------------------+--------------------------------+----------+