]> granicus.if.org Git - python/commitdiff
Doc: Corrected syntax for return annotation (GH-16265)
authorJason Plurad <pluradj@us.ibm.com>
Thu, 19 Sep 2019 05:24:29 +0000 (01:24 -0400)
committerStéphane Wirtel <stephane@wirtel.be>
Thu, 19 Sep 2019 05:24:29 +0000 (07:24 +0200)
Signed-off-by: Jason Plurad <pluradj@us.ibm.com>
Doc/tutorial/errors.rst

index 75a49259d44022eabad424d1180185f41b030104..c820e42ac471f3ac53a102dc8a88f0774513f4e5 100644 (file)
@@ -400,7 +400,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: