gh-100174: [Enum] Correct PowersOfThree example. (GH-100178)

Changed from multiples of 3 to powers of 3 to match the class name.
(cherry picked from commit 868bab0fdc)

Co-authored-by: Beweeted <Beweeted@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-12-11 15:30:25 -08:00 committed by GitHub
parent 606adb4b89
commit 593c5a0247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -316,11 +316,11 @@ Data Types
>>> class PowersOfThree(Enum):
... @staticmethod
... def _generate_next_value_(name, start, count, last_values):
... return (count + 1) * 3
... return 3 ** (count + 1)
... FIRST = auto()
... SECOND = auto()
>>> PowersOfThree.SECOND.value
6
9
.. method:: Enum.__init_subclass__(cls, **kwds)