]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update lexical_analysis.rst (GH-17508)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Jun 2020 13:01:20 +0000 (06:01 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 13:01:20 +0000 (06:01 -0700)
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>
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.