From 455dcaad4e8bad146bba3c3fb456359a4110976a Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 14 Jan 2023 05:55:35 +0000 Subject: [PATCH] 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 2afd72f3cddcc7..d0da05f784161f 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