]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix typo in what's new in 3.10 (GH-26911) (GH-26940)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Jun 2021 11:12:23 +0000 (04:12 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 11:12:23 +0000 (12:12 +0100)
The `try` statement was missing a colon and therefore was not exemplifying the correct `SyntaxError`.
(cherry picked from commit dcb1caef5bd8e90e1ecb4c07d7114e51b49fe37a)

Co-authored-by: Rodrigo Girão Serrão <rodrigogiraoserrao@gmail.com>
Doc/whatsnew/3.10.rst

index 5e510d8f6ed3aea0d5c1aa25784f4ae773bfd2ab..7ac627ba19b0e07b51b5abd6761f4d6db8cdda4a 100644 (file)
@@ -278,7 +278,7 @@ have been incorporated. Some of the most notable ones are as follows:
 
     .. code-block:: python
 
-        >>> try
+        >>> try:
         ...     x = 2
         ... something = 3
           File "<stdin>", line 3