]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
authorChristophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Tue, 3 Jan 2023 22:08:50 +0000 (23:08 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2023 22:08:50 +0000 (14:08 -0800)
Doc/library/enum.rst

index 25a6e1f0b61677ac82000c224887b3dfdd7f90b8..47d9e39305d0fdb9650944bab861874dfaf77b95 100644 (file)
@@ -807,9 +807,9 @@ Utilities and Decorators
    call an *Enum*'s :meth:`_generate_next_value_` to get an appropriate value.
    For *Enum* and *IntEnum* that appropriate value will be the last value plus
    one; for *Flag* and *IntFlag* it will be the first power-of-two greater
-   than the last value; for *StrEnum* it will be the lower-cased version of the
-   member's name.  Care must be taken if mixing *auto()* with manually specified
-   values.
+   than the highest value; for *StrEnum* it will be the lower-cased version of
+   the member's name.  Care must be taken if mixing *auto()* with manually
+   specified values.
 
    *auto* instances are only resolved when at the top level of an assignment: