summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-07-14 19:45:18 (GMT)
committerNed Deily <nad@acm.org>2013-07-14 19:45:18 (GMT)
commitd57b268653b0def1348965e09baea9b8468b947c (patch)
tree54d1e11cacb204c55a1da2d607f37fa322518482
parent20f5e37457080f6eab75ec01d8c60df2c8d65532 (diff)
parent0995c47891b6a0bea83c201329082c7ebd62f825 (diff)
downloadcpython-d57b268653b0def1348965e09baea9b8468b947c.zip
cpython-d57b268653b0def1348965e09baea9b8468b947c.tar.gz
cpython-d57b268653b0def1348965e09baea9b8468b947c.tar.bz2
Closes #18452: fix several "occurrence" typos (reported by FĂ©vry Thibault).
-rw-r--r--Doc/howto/argparse.rst2
-rw-r--r--Doc/library/configparser.rst2
-rw-r--r--Doc/library/stdtypes.rst4
3 files changed, 4 insertions, 4 deletions
diff --git a/Doc/howto/argparse.rst b/Doc/howto/argparse.rst
index ec67f1e..deaee50 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/configparser.rst b/Doc/library/configparser.rst
index 0b8212c..f9a87ef 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -539,7 +539,7 @@ the :meth:`__init__` options:
* *delimiters*, default value: ``('=', ':')``
Delimiters are substrings that delimit keys from values within a section. The
- first occurence of a delimiting substring on a line is considered a delimiter.
+ first occurrence of a delimiting substring on a line is considered a delimiter.
This means values (but not keys) can contain the delimiters.
See also the *space_around_delimiters* argument to
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index e7c777b..aaf6ce6 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -871,11 +871,11 @@ operations have the same priority as the corresponding numeric operations.
+--------------------------+--------------------------------+----------+
| ``max(s)`` | largest item of *s* | |
+--------------------------+--------------------------------+----------+
-| ``s.index(x[, i[, j]])`` | index of the first occurence | \(8) |
+| ``s.index(x[, i[, j]])`` | index of the first occurrence | \(8) |
| | of *x* in *s* (at or after | |
| | index *i* and before index *j*)| |
+--------------------------+--------------------------------+----------+
-| ``s.count(x)`` | total number of occurences of | |
+| ``s.count(x)`` | total number of occurrences of | |
| | *x* in *s* | |
+--------------------------+--------------------------------+----------+