Skip to content

Commit

Permalink
bpo-31487: Update F-strings doc example (pythonGH-3627)
Browse files Browse the repository at this point in the history
Shorten the comment to: "using integer format specifier"
  • Loading branch information
Mariatta authored Sep 17, 2017
1 parent 30b61b5 commit 63c591c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/lexical_analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63c591c

Please sign in to comment.