Commit 63c591c0 authored by Mariatta's avatar Mariatta Committed by GitHub

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

Shorten the comment to: "using integer format specifier"
parent 30b61b51
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment