Skip to content

Commit 01f4505

Browse files
authored
Apply suggestions from code review
1 parent 614f8ef commit 01f4505

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/enum.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ Data Types
464464

465465
Adds a new name as an alias to an existing member::
466466

467-
>>> Color._add_alias_(Color.RED, "ERROR")
467+
>>> Color.RED._add_alias_("ERROR")
468468
>>> Color.ERROR
469469
<Color.RED: 1>
470470

@@ -476,7 +476,7 @@ Data Types
476476

477477
Adds a new value as an alias to an existing member::
478478

479-
>>> Color._add_value_alias_(Color.RED, 42)
479+
>>> Color.RED._add_value_alias_(42)
480480
>>> Color(42)
481481
<Color.RED: 1>
482482

0 commit comments

Comments
 (0)