From: Ned Deily Date: Sun, 14 Jul 2013 19:42:27 +0000 (-0700) Subject: Issue #18452: fix several "occurrence" typos (reported by Févry Thibault). X-Git-Tag: v2.7.6rc1~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c967a593c95cbfe7558fcda72944da80dcb74ab8;p=thirdparty%2FPython%2Fcpython.git Issue #18452: fix several "occurrence" typos (reported by Févry Thibault). --- diff --git a/Doc/howto/argparse.rst b/Doc/howto/argparse.rst index 4f64948c9d2a..3c2b592990d9 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 76345e58f7f8..0001453e5d02 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* | | +------------------+--------------------------------+----------+