mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Update lexical_analysis.rst (GH-17508)
Use Sphinx role markup for `str.format`.
Automerge-Triggered-By: @csabella
(cherry picked from commit e2fb8a2c42
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
This commit is contained in:
parent
3782497cc2
commit
2c0a59bb3d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
fields may include their own conversion fields and :ref:`format specifiers
|
||||||
<formatspec>`, but may not include more deeply-nested replacement fields. The
|
<formatspec>`, but may not include more deeply-nested replacement fields. The
|
||||||
:ref:`format specifier mini-language <formatspec>` is the same as that used by
|
: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
|
Formatted string literals may be concatenated, but replacement fields
|
||||||
cannot be split across literals.
|
cannot be split across literals.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue