From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 4 May 2021 12:44:14 +0000 (-0700) Subject: Fix error in Enum documentation example code that was referring to the wrong enum... X-Git-Tag: v3.10.0b2~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31debfa524a9522a02adc66eb00f0009d7413c8c;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index 9ece93e66050..b0eea5560afc 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::