]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update lexical_analysis.rst (GH-17508)
authorGéry Ogam <gery.ogam@gmail.com>
Fri, 12 Jun 2020 12:54:29 +0000 (14:54 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 12:54:29 +0000 (05:54 -0700)
Use Sphinx role markup for `str.format`.

Automerge-Triggered-By: @csabella
Doc/reference/lexical_analysis.rst

index e3a3a88757ed29479c3ba24c0b6cf554216270db..7d70cbcaa372ac5f2a96cae1a42607adaebe4c84 100644 (file)
@@ -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.