From ef633e5000222a3dba74473c49d6a81fca0a44ec Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 14 Jan 2023 05:55:35 +0000 Subject: Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029) --- 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 cc71428..658d676 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 -- cgit v0.12