Skip to content

Commit

Permalink
Sync-up parameter name in equivalent code snippet of enumerate (pyt…
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherArchivist authored Jan 14, 2023
1 parent 5134ef4 commit ef633e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef633e5

Please sign in to comment.