]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix typo in what's new in 3.10 (GH-26911)
authorRodrigo Girão Serrão <rodrigogiraoserrao@gmail.com>
Mon, 28 Jun 2021 22:02:18 +0000 (23:02 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Jun 2021 22:02:18 +0000 (23:02 +0100)
The `try` statement was missing a colon and therefore was not exemplifying the correct `SyntaxError`.

Doc/whatsnew/3.10.rst

index 81481327b43e9bee523c540a5911d973a49c019d..cd3db5550a6bf46ddeb0691714dd5aac702fdc3e 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