mirror of https://github.com/python/cpython
gh-95986: Fix the example using match keyword (#95989)
This commit is contained in:
parent
6d0a0191a4
commit
cd0fde27f9
|
@ -669,6 +669,7 @@ Several other key features:
|
|||
GREEN = 1
|
||||
BLUE = 2
|
||||
|
||||
color = Color.GREEN
|
||||
match color:
|
||||
case Color.RED:
|
||||
print("I see red!")
|
||||
|
|
Loading…
Reference in New Issue