summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-12-15 18:11:17 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-12-15 18:11:17 (GMT)
commit5a9f379435c1dbe812da885b2aa869c3dbf65f35 (patch)
tree572d34df9d1f7bb1e359336382dc659c609e0ba2 /Doc
parent7d1fbecd6a27a3693e05541ffc62b7885edfd8b3 (diff)
downloadcpython-5a9f379435c1dbe812da885b2aa869c3dbf65f35.zip
cpython-5a9f379435c1dbe812da885b2aa869c3dbf65f35.tar.gz
cpython-5a9f379435c1dbe812da885b2aa869c3dbf65f35.tar.bz2
F-strings docs: link to Format Specifiers (GH-4888) (GH-4889)
Link to the Format Specification Mini Language section from f-strings' documentation. (cherry picked from commit d924fa523df766dbf2f8b6a28ae502eb3433bfe5)
Diffstat (limited to 'Doc')
-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 4a5abf6..30dc721 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.