[Python-checkins] cpython (merge 3.3 -> default): Closes #18452: fix several "occurrence" typos (reported by Févry Thibault).

ned.deily python-checkins at python.org
Sun Jul 14 21:46:07 CEST 2013


http://hg.python.org/cpython/rev/db9fe49069ed
changeset:   84626:db9fe49069ed
parent:      84623:afd17a514117
parent:      84625:1a93c624551f
user:        Ned Deily <nad at acm.org>
date:        Sun Jul 14 12:45:18 2013 -0700
summary:
  Closes #18452: fix several "occurrence" typos (reported by Févry Thibault).

files:
  Doc/howto/argparse.rst       |  2 +-
  Doc/library/configparser.rst |  2 +-
  Doc/library/stdtypes.rst     |  4 ++--
  3 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/howto/argparse.rst b/Doc/howto/argparse.rst
--- a/Doc/howto/argparse.rst
+++ b/Doc/howto/argparse.rst
@@ -468,7 +468,7 @@
        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
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -539,7 +539,7 @@
 * *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
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -871,11 +871,11 @@
 +--------------------------+--------------------------------+----------+
 | ``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*                     |          |
 +--------------------------+--------------------------------+----------+
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list