Skip to content

Commit 455dcaa

Browse files
Sync-up parameter name in equivalent code snippet of enumerate (pythonGH-101029)
(cherry picked from commit ef633e5) Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
1 parent ba88628 commit 455dcaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/library/functions.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ are always available. They are listed here in alphabetical order.
504504

505505
Equivalent to::
506506

507-
def enumerate(sequence, start=0):
507+
def enumerate(iterable, start=0):
508508
n = start
509-
for elem in sequence:
509+
for elem in iterable:
510510
yield n, elem
511511
n += 1
512512

0 commit comments

Comments
 (0)