summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorkrisaoe <krisaoe@users.noreply.github.com>2021-05-04 12:34:14 (GMT)
committerGitHub <noreply@github.com>2021-05-04 12:34:14 (GMT)
commit33d9bf298b7672c5a09f8c0d80af00a4ec383e4a (patch)
tree8226966443eab5855810dcd177cd3ae36d43d863 /Doc
parent2f5baa17504feb9a7613bac32fdceed4894434de (diff)
downloadcpython-33d9bf298b7672c5a09f8c0d80af00a4ec383e4a.zip
cpython-33d9bf298b7672c5a09f8c0d80af00a4ec383e4a.tar.gz
cpython-33d9bf298b7672c5a09f8c0d80af00a4ec383e4a.tar.bz2
Fix error in Enum documentation example code that was referring to the wrong enum. (#25837)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/howto/enum.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst
index 9ece93e..b0eea55 100644
--- a/Doc/howto/enum.rst
+++ b/Doc/howto/enum.rst
@@ -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::