summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-12 13:01:20 (GMT)
committerGitHub <noreply@github.com>2020-06-12 13:01:20 (GMT)
commit2c0a59bb3d2fb83312c965ea9d5ef9d0028a53bb (patch)
tree41c844c8872546c1039ccd4734b4d48301c031d9
parent3782497cc22e70b41e32ac09cb06d3948074d8a7 (diff)
downloadcpython-2c0a59bb3d2fb83312c965ea9d5ef9d0028a53bb.zip
cpython-2c0a59bb3d2fb83312c965ea9d5ef9d0028a53bb.tar.gz
cpython-2c0a59bb3d2fb83312c965ea9d5ef9d0028a53bb.tar.bz2
Update lexical_analysis.rst (GH-17508)
Use Sphinx role markup for `str.format`. Automerge-Triggered-By: @csabella (cherry picked from commit e2fb8a2c42ee60c72a40d93da69e9efc4e359023) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
-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 e3a3a88..7d70cbc 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -704,7 +704,7 @@ Top-level format specifiers may include nested replacement fields. These nested
fields may include their own conversion fields and :ref:`format specifiers
<formatspec>`, but may not include more deeply-nested replacement fields. The
:ref:`format specifier mini-language <formatspec>` is the same as that used by
-the string .format() method.
+the :meth:`str.format` method.
Formatted string literals may be concatenated, but replacement fields
cannot be split across literals.