Skip to content

Commit 64ed609

Browse files
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
1 parent e196d8c commit 64ed609

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
@@ -807,9 +807,9 @@ Utilities and Decorators
807807
call an *Enum*'s :meth:`_generate_next_value_` to get an appropriate value.
808808
For *Enum* and *IntEnum* that appropriate value will be the last value plus
809809
one; for *Flag* and *IntFlag* it will be the first power-of-two greater
810-
than the last value; for *StrEnum* it will be the lower-cased version of the
811-
member's name. Care must be taken if mixing *auto()* with manually specified
812-
values.
810+
than the highest value; for *StrEnum* it will be the lower-cased version of
811+
the member's name. Care must be taken if mixing *auto()* with manually
812+
specified values.
813813

814814
*auto* instances are only resolved when at the top level of an assignment:
815815

0 commit comments

Comments
 (0)