summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-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* | |
+------------------+--------------------------------+----------+