From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 19 Sep 2019 05:42:57 +0000 (-0700) Subject: [3.8] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) (GH-16274) X-Git-Tag: v3.8.0rc1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6612a4fd36c7f2d71b00da12a3ad4ce619670cd2;p=python [3.8] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) (GH-16274) Signed-off-by: Jason Plurad (cherry picked from commit 9ab6038fe843e1193d795eb58fd5931b44be5a96) Co-authored-by: Jason Plurad --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 0ddf0cc004..9585f0673a 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -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: