From d7244ef91b8ba44352471dfdd2be158d584565f7 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 14 Jan 2023 05:36:07 +0000 Subject: [PATCH] Fix parameter name in equivalent code snippet of `enumerate` The parameter name was changed from `sequence` to `iterable` in commit d11ae5d6. However, when the equivalent code snippet was added a couple of years later in commits 690d4ae8/90289281, it accidentally used the old name. --- 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 cc7142854b1b2a..658d6768457d16 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