Skip to content

Commit

Permalink
Update lexical_analysis.rst (pythonGH-17508)
Browse files Browse the repository at this point in the history
Use Sphinx role markup for `str.format`.

Automerge-Triggered-By: @csabella
(cherry picked from commit e2fb8a2)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
  • Loading branch information
miss-islington and geryogam committed Jun 12, 2020
1 parent 3782497 commit 2c0a59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/lexical_analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2c0a59b

Please sign in to comment.