summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>2023-01-14 05:55:35 +0000
committerGitHub <noreply@github.com>2023-01-13 23:55:35 -0600
commitef633e5000222a3dba74473c49d6a81fca0a44ec (patch)
tree29d67c56edd387826fba09afd761571fa071560b
parent5134ef48784b07133ae40b09a8086c10f0cac324 (diff)
downloadcpython-git-ef633e5000222a3dba74473c49d6a81fca0a44ec.tar.gz
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)
-rw-r--r--Doc/library/functions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index cc7142854b..658d676845 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