Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)

This commit is contained in:
JustAnotherArchivist 2023-01-14 05:55:35 +00:00 committed by GitHub
parent 5134ef4878
commit ef633e5000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -505,9 +505,9 @@ are always available. They are listed here in alphabetical order.
Equivalent to::
def enumerate(sequence, start=0):
def enumerate(iterable, start=0):
n = start
for elem in sequence:
for elem in iterable:
yield n, elem
n += 1