8000 Sync-up parameter name in equivalent code snippet of `enumerate` (GH-… · python/cpython@ef633e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef633e5

Browse files
Sync-up parameter name in equivalent code snippet of enumerate (GH-101029)
1 parent 5134ef4 commit ef633e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

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

506506
Equivalent to::
507507

508-
def enumerate(sequence, start=0):
508+
def enumerate(iterable, start=0):
509509
n = start
510-
for elem in sequence:
510+
for elem in iterable:
511511
yield n, elem
512512
n += 1
513513

0 commit comments

Comments
 (0)
0