mirror of https://github.com/python/cpython
#20677: fix typo in enum docs. Patch by Saimadhav Heblikar.
This commit is contained in:
parent
a9daee3eb0
commit
32f30a8d9b
|
@ -139,7 +139,7 @@ If you want to access enum members by *name*, use item access::
|
|||
>>> Color['green']
|
||||
<Color.green: 2>
|
||||
|
||||
If have an enum member and need its :attr:`name` or :attr:`value`::
|
||||
If you have an enum member and need its :attr:`name` or :attr:`value`::
|
||||
|
||||
>>> member = Color.red
|
||||
>>> member.name
|
||||
|
|
Loading…
Reference in New Issue