]> granicus.if.org Git - python/commitdiff
bpo-31487: Update F-strings doc example (GH-3627) (GH-3628)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 17 Sep 2017 14:57:08 +0000 (07:57 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Sun, 17 Sep 2017 14:57:08 +0000 (07:57 -0700)
Shorten the comment to: "using integer format specifier"
(cherry picked from commit 63c591c0b0b57870a606e8edc59afe6264e7504d)

Doc/reference/lexical_analysis.rst

index 3305f460d4d274baaca4f45d8c889a04e8e585aa..c2fd2b74caa7f89ac19dfda068bf3fcd3185b838 100644 (file)
@@ -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