]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 15 Jan 2023 06:46:06 +0000 (22:46 -0800)
committerGitHub <noreply@github.com>
Sun, 15 Jan 2023 06:46:06 +0000 (12:16 +0530)
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)
(cherry picked from commit ef633e5000222a3dba74473c49d6a81fca0a44ec)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
Doc/library/functions.rst

index 2afd72f3cddcc769b44706effe12262829012314..d0da05f784161ff9e19c8155987b1dde1748bd77 100644 (file)
@@ -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