Skip to content

Commit 7e9b2b0

Browse files
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
(cherry picked from commit 64ed609) Co-authored-by: Christophe Nanteuil <[email protected]>
1 parent f49006e commit 7e9b2b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/enum.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ Utilities and Decorators
799799
call an *Enum*'s :meth:`_generate_next_value_` to get an appropriate value.
800800
For *Enum* and *IntEnum* that appropriate value will be the last value plus
801801
one; for *Flag* and *IntFlag* it will be the first power-of-two greater
802-
than the last value; for *StrEnum* it will be the lower-cased version of the
803-
member's name. Care must be taken if mixing *auto()* with manually specified
804-
values.
802+
than the highest value; for *StrEnum* it will be the lower-cased version of
803+
the member's name. Care must be taken if mixing *auto()* with manually
804+
specified values.
805805

806806
*auto* instances are only resolved when at the top level of an assignment:
807807

0 commit comments

Comments
 (0)