From: Mariatta Date: Sun, 17 Sep 2017 14:43:31 +0000 (-0700) Subject: bpo-31487: Update F-strings doc example (GH-3627) X-Git-Tag: v3.7.0a1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63c591c0b0b57870a606e8edc59afe6264e7504d;p=python bpo-31487: Update F-strings doc example (GH-3627) Shorten the comment to: "using integer format specifier" --- diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index baf1f09dff..684119a443 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -680,7 +680,7 @@ Some examples of formatted string literals:: >>> f"{today:%b %d, %Y}" # using date format specifier 'January 27, 2017' >>> number = 1024 - >>> f"{number:#0x}" # using integer presentation type as format specifier + >>> f"{number:#0x}" # using integer format specifier '0x400' A consequence of sharing the same syntax as regular string literals is