summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-09-17 14:43:31 (GMT)
committerGitHub <noreply@github.com>2017-09-17 14:43:31 (GMT)
commit63c591c0b0b57870a606e8edc59afe6264e7504d (patch)
tree4378a31e33e7c947b2a2996064523d02902ada99 /Doc/reference
parent30b61b51e05d2d43e8e2e783b0a9df738535423b (diff)
downloadcpython-63c591c0b0b57870a606e8edc59afe6264e7504d.zip
cpython-63c591c0b0b57870a606e8edc59afe6264e7504d.tar.gz
cpython-63c591c0b0b57870a606e8edc59afe6264e7504d.tar.bz2
bpo-31487: Update F-strings doc example (GH-3627)
Shorten the comment to: "using integer format specifier"
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/lexical_analysis.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index baf1f09..684119a 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