aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2020-06-12 14:54:29 +0200
committerGitHub <noreply@github.com>2020-06-12 05:54:29 -0700
commite2fb8a2c42ee60c72a40d93da69e9efc4e359023 (patch)
treea1870bce80ca5e1f5cbf264e0191aa309bbc93c1 /Doc/reference
parentbpo-33944: site: Add site-packages tracing in verbose mode (GH-12110) (diff)
downloadcpython-e2fb8a2c42ee60c72a40d93da69e9efc4e359023.tar.gz
cpython-e2fb8a2c42ee60c72a40d93da69e9efc4e359023.tar.bz2
cpython-e2fb8a2c42ee60c72a40d93da69e9efc4e359023.zip
Update lexical_analysis.rst (GH-17508)
Use Sphinx role markup for `str.format`. Automerge-Triggered-By: @csabella
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 e3a3a88757e..7d70cbcaa37 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.