]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)
authorJustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
Sat, 14 Jan 2023 05:55:35 +0000 (05:55 +0000)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 05:55:35 +0000 (23:55 -0600)
Doc/library/functions.rst

index cc7142854b1b2a0f2b49045042e38274277c5e4d..658d6768457d16a2fe4d30a71fccf90905ad0419 100644 (file)
@@ -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