Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-95986: Fix the example using match keyword
  • Loading branch information
180909 committed Aug 15, 2022
commit 2aaae60c09295169314b8321fc6f799d4b8279ab
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