]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix error in Enum documentation example code that was referring to the wrong enum...
authorkrisaoe <krisaoe@users.noreply.github.com>
Tue, 4 May 2021 12:34:14 +0000 (22:34 +1000)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 12:34:14 +0000 (14:34 +0200)
Doc/howto/enum.rst

index 9ece93e660504fd486b3b9ddaaf52f82b75e00c3..b0eea5560afce8bfb10ffb88a4049ae81b348cfc 100644 (file)
@@ -286,7 +286,7 @@ overridden::
     ...     EAST = auto()
     ...     WEST = auto()
     ...
-    >>> [member.value for member in Color]
+    >>> [member.value for member in Ordinal]
     ['NORTH', 'SOUTH', 'EAST', 'WEST']
 
 .. note::