]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95986: Fix the example using match keyword (#95989)
author180909 <734461790@qq.com>
Thu, 6 Oct 2022 16:52:21 +0000 (00:52 +0800)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 16:52:21 +0000 (09:52 -0700)
Doc/whatsnew/3.10.rst

index db8d9281b1f2ed1ae478bbaaa5f6749f8d94c77f..428a19453db522c8cd677184468e50667c7d0b66 100644 (file)
@@ -669,6 +669,7 @@ Several other key features:
           GREEN = 1
           BLUE = 2
 
+      color = Color.GREEN
       match color:
           case Color.RED:
               print("I see red!")