From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 15 Jan 2023 06:46:06 +0000 (-0800) Subject: [3.11] Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029... X-Git-Tag: v3.11.2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d98282ed41b16a42c0a3df0b0f7cebbbcea5e11;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 2afd72f3cddc..d0da05f78416 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