bpo-31487: Update F-strings doc example (GH-3627) (GH-3628)

Shorten the comment to: "using integer format specifier"
(cherry picked from commit 63c591c0b0)
This commit is contained in:
Miss Islington (bot) 2017-09-17 07:57:08 -07:00 committed by Mariatta
parent b417332bf4
commit 4f6bae9677

View file

@ -680,7 +680,7 @@ Some examples of formatted string literals::
>>> f"{today:%b %d, %Y}" # using date format specifier >>> f"{today:%b %d, %Y}" # using date format specifier
'January 27, 2017' 'January 27, 2017'
>>> number = 1024 >>> number = 1024
>>> f"{number:#0x}" # using integer presentation type as format specifier >>> f"{number:#0x}" # using integer format specifier
'0x400' '0x400'
A consequence of sharing the same syntax as regular string literals is A consequence of sharing the same syntax as regular string literals is