]> granicus.if.org Git - python/commitdiff
[3.8] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) (GH-16274)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 19 Sep 2019 05:42:57 +0000 (22:42 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Thu, 19 Sep 2019 05:42:57 +0000 (07:42 +0200)
Signed-off-by: Jason Plurad <pluradj@us.ibm.com>
(cherry picked from commit 9ab6038fe843e1193d795eb58fd5931b44be5a96)

Co-authored-by: Jason Plurad <pluradj@us.ibm.com>
Doc/tutorial/errors.rst

index 0ddf0cc0042dd381cbc16bd8cff126a6e0fcc890..9585f0673aec55c21b6fe7302aa46d607d45d121 100644 (file)
@@ -353,7 +353,7 @@ If a :keyword:`finally` clause is present, the :keyword:`finally` clause will ex
 
 For example::
 
-   >>> def bool_return(): -> bool:
+   >>> def bool_return():
    ...     try:
    ...         return True
    ...     finally: