Skip to content

Commit 2692914

Browse files
180909pull[bot]
authored andcommitted
pythongh-95986: Fix the example using match keyword (python#95989)
1 parent 788544b commit 2692914

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/whatsnew/3.10.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ Several other key features:
669669
GREEN = 1
670670
BLUE = 2
671671
672+
color = Color.GREEN
672673
match color:
673674
case Color.RED:
674675
print("I see red!")

0 commit comments

Comments
 (0)