10000 [3.12] gh-111343: Fix `itertools` docs: `start` arg is optional for `… · python/cpython@883233d · GitHub
[go: up one dir, main page]

Skip to content

Commit 883233d

Browse files
[3.12] gh-111343: Fix itertools docs: start arg is optional for count (gh-111344) (gh-111385)
1 parent 2014c23 commit 883233d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/itertools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ operator can be mapped across two vectors to form an efficient dot-product:
4141
================== ================= ================================================= =========================================
4242
Iterator Arguments Results Example
4343
================== ================= ================================================= =========================================
44-
:func:`count` start, [step] start, start+step, start+2*step, ... ``count(10) --> 10 11 12 13 14 ...``
44+
:func:`count` [start[, step]] start, start+step, start+2*step, ... ``count(10) --> 10 11 12 13 14 ...``
4545
:func:`cycle` p p0, p1, ... plast, p0, p1, ... ``cycle('ABCD') --> A B C D A B C D ...``
4646
:func:`repeat` elem [,n] elem, elem, elem, ... endlessly or up to n times ``repeat(10, 3) --> 10 10 10``
4747
================== ================= ================================================= =========================================

0 commit comments

Comments
 (0)
0