summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-12-15 18:07:01 (GMT)
committerGitHub <noreply@github.com>2017-12-15 18:07:01 (GMT)
commitd924fa523df766dbf2f8b6a28ae502eb3433bfe5 (patch)
tree462d2da3d3fd5f4bbe22cb38e265dfb52810a8eb /Doc/reference
parent9402c8367bf6ada1b84f620ad957750c33adbaf9 (diff)
downloadcpython-d924fa523df766dbf2f8b6a28ae502eb3433bfe5.zip
cpython-d924fa523df766dbf2f8b6a28ae502eb3433bfe5.tar.gz
cpython-d924fa523df766dbf2f8b6a28ae502eb3433bfe5.tar.bz2
F-strings docs: link to Format Specifiers (GH-4888)
Link to the Format Specification Mini Language section from f-strings' documentation.
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/lexical_analysis.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index ee3fbc1..86e55e4 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -656,7 +656,8 @@ the final value of the whole string.
Top-level format specifiers may include nested replacement fields.
These nested fields may include their own conversion fields and
-format specifiers, but may not include more deeply-nested replacement fields.
+:ref:`format specifiers <formatspec>`, but may not include more
+deeply-nested replacement fields.
Formatted string literals may be concatenated, but replacement fields
cannot be split across literals.