From 6d98282ed41b16a42c0a3df0b0f7cebbbcea5e11 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 14 Jan 2023 22:46:06 -0800 Subject: [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 --- Doc/library/functions.rst | 4 ++-- 1 file 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 -- cgit v0.12