summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-04 12:44:14 (GMT)
committerGitHub <noreply@github.com>2021-05-04 12:44:14 (GMT)
commit31debfa524a9522a02adc66eb00f0009d7413c8c (patch)
treeee401dd605cceb450c3db091e53b2338e23b1b6e
parent912ef3f2481a30362bce339fd44aba990d046ae2 (diff)
downloadcpython-31debfa524a9522a02adc66eb00f0009d7413c8c.zip
cpython-31debfa524a9522a02adc66eb00f0009d7413c8c.tar.gz
cpython-31debfa524a9522a02adc66eb00f0009d7413c8c.tar.bz2
Fix error in Enum documentation example code that was referring to the wrong enum. (GH-25837) (#25891)
(cherry picked from commit 33d9bf298b7672c5a09f8c0d80af00a4ec383e4a) Co-authored-by: krisaoe <krisaoe@users.noreply.github.com>
-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::