summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-09-17 14:57:08 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-09-17 14:57:08 (GMT)
commit4f6bae9677c0e5398e64c503fd3c19cae94567da (patch)
treedefbe1ca77b2b2754c5c7a3885d9cb842da65b2f /Doc
parentb417332bf44af93c8acda4b7197181d4b62c16a4 (diff)
downloadcpython-4f6bae9677c0e5398e64c503fd3c19cae94567da.zip
cpython-4f6bae9677c0e5398e64c503fd3c19cae94567da.tar.gz
cpython-4f6bae9677c0e5398e64c503fd3c19cae94567da.tar.bz2
bpo-31487: Update F-strings doc example (GH-3627) (GH-3628)
Shorten the comment to: "using integer format specifier" (cherry picked from commit 63c591c0b0b57870a606e8edc59afe6264e7504d)
Diffstat (limited to 'Doc')
-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 3305f46..c2fd2b7 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