summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-27 15:01:00 (GMT)
committerGitHub <noreply@github.com>2023-10-27 15:01:00 (GMT)
commit883233dcc3afaf0b1acb31deb486c6cb38d49350 (patch)
treefb3ecbf905c9f620117a3aa8e6d5cef23ebd0582
parent2014c23de385c444a9eac8ebad84721c39a62b91 (diff)
downloadcpython-883233dcc3afaf0b1acb31deb486c6cb38d49350.zip
cpython-883233dcc3afaf0b1acb31deb486c6cb38d49350.tar.gz
cpython-883233dcc3afaf0b1acb31deb486c6cb38d49350.tar.bz2
[3.12] gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344) (gh-111385)
-rw-r--r--Doc/library/itertools.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 5846d78..f97e7f7 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -41,7 +41,7 @@ operator can be mapped across two vectors to form an efficient dot-product:
================== ================= ================================================= =========================================
Iterator Arguments Results Example
================== ================= ================================================= =========================================
-:func:`count` start, [step] start, start+step, start+2*step, ... ``count(10) --> 10 11 12 13 14 ...``
+:func:`count` [start[, step]] start, start+step, start+2*step, ... ``count(10) --> 10 11 12 13 14 ...``
:func:`cycle` p p0, p1, ... plast, p0, p1, ... ``cycle('ABCD') --> A B C D A B C D ...``
:func:`repeat` elem [,n] elem, elem, elem, ... endlessly or up to n times ``repeat(10, 3) --> 10 10 10``
================== ================= ================================================= =========================================