summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-15 06:46:06 (GMT)
committerGitHub <noreply@github.com>2023-01-15 06:46:06 (GMT)
commit6d98282ed41b16a42c0a3df0b0f7cebbbcea5e11 (patch)
treeb953bcf86ffe5f509a81b6e57b2335c1f1f9b595 /Doc
parentc7aa39286bcb7d331214dda6a480b0b560965cdb (diff)
downloadcpython-6d98282ed41b16a42c0a3df0b0f7cebbbcea5e11.zip
cpython-6d98282ed41b16a42c0a3df0b0f7cebbbcea5e11.tar.gz
cpython-6d98282ed41b16a42c0a3df0b0f7cebbbcea5e11.tar.bz2
[3.11] Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029) (#101030)
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029) (cherry picked from commit ef633e5000222a3dba74473c49d6a81fca0a44ec) Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
Diffstat (limited to 'Doc')
-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 2afd72f..d0da05f 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -504,9 +504,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