summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-10-27 04:30:13 (GMT)
committerGitHub <noreply@github.com>2023-10-27 04:30:13 (GMT)
commitee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69 (patch)
tree3dc96f13a5d24cb310f8178d14bfa73c185f595c /Doc/library
parent21f068d80c6cc5de75f9df70fdd733d0ce9c70de (diff)
downloadcpython-ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69.zip
cpython-ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69.tar.gz
cpython-ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69.tar.bz2
gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344)
Diffstat (limited to 'Doc/library')
-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``
================== ================= ================================================= =========================================