Skip to content

Commit

Permalink
pythongh-95986: Fix the example using match keyword (python#95989)
Browse files Browse the repository at this point in the history
  • Loading branch information
180909 authored and mpage committed Oct 11, 2022
1 parent 79fbf97 commit a0d2d63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ Several other key features:
GREEN = 1
BLUE = 2
color = Color.GREEN
match color:
case Color.RED:
print("I see red!")
Expand Down

0 comments on commit a0d2d63

Please sign in to comment.