From: 180909 <734461790@qq.com> Date: Thu, 6 Oct 2022 16:52:21 +0000 (+0800) Subject: gh-95986: Fix the example using match keyword (#95989) X-Git-Tag: v3.12.0a1~224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd0fde27f9657266a0fb5782a5234678f2cf4662;p=thirdparty%2FPython%2Fcpython.git gh-95986: Fix the example using match keyword (#95989) --- diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index db8d9281b1f2..428a19453db5 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -669,6 +669,7 @@ Several other key features: GREEN = 1 BLUE = 2 + color = Color.GREEN match color: case Color.RED: print("I see red!")