]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in 3.10's What's New documentation (GH-25409)
authorZackery Spytz <zspytz@gmail.com>
Wed, 14 Apr 2021 16:16:11 +0000 (10:16 -0600)
committerGitHub <noreply@github.com>
Wed, 14 Apr 2021 16:16:11 +0000 (09:16 -0700)
"occured" ->  "occurred"

Doc/whatsnew/3.10.rst

index 69697e15d421f722dbf2b6a913728352c34b83f2..0962f04b3a7d9c24cdafe4729741f2d163f78c3c 100644 (file)
@@ -420,7 +420,7 @@ For example::
        case ('warning', code, 40):
            print("A warning has been received.")
        case ('error', code, _):
-           print(f"An error {code} occured.")
+           print(f"An error {code} occurred.")
 
 In the above case, ``test_variable`` will match for ('error', code, 100) and
 ('error', code, 800).