summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-03 22:27:38 (GMT)
committerGitHub <noreply@github.com>2023-01-03 22:27:38 (GMT)
commit7e9b2b0aa735331eafc0a16b7eb7efaa871bebe0 (patch)
tree79ced67e3a268666794d4ad8945371eaa2cf9661 /Doc
parentf49006e6a2a538dcce3fcc67980fccd811d60327 (diff)
downloadcpython-7e9b2b0aa735331eafc0a16b7eb7efaa871bebe0.zip
cpython-7e9b2b0aa735331eafc0a16b7eb7efaa871bebe0.tar.gz
cpython-7e9b2b0aa735331eafc0a16b7eb7efaa871bebe0.tar.bz2
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
(cherry picked from commit 64ed609c532a12b27f67a1e12e9e02f136ee3a94) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/enum.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index b7b4b94..26cee1a 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -799,9 +799,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: