diff options
author | JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com> | 2023-01-14 05:55:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 05:55:35 (GMT) |
commit | ef633e5000222a3dba74473c49d6a81fca0a44ec (patch) | |
tree | 29d67c56edd387826fba09afd761571fa071560b /Doc | |
parent | 5134ef48784b07133ae40b09a8086c10f0cac324 (diff) | |
download | cpython-ef633e5000222a3dba74473c49d6a81fca0a44ec.zip cpython-ef633e5000222a3dba74473c49d6a81fca0a44ec.tar.gz cpython-ef633e5000222a3dba74473c49d6a81fca0a44ec.tar.bz2 |
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index cc71428..658d676 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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 |