Skip to content

Commit 3827427

Browse files
committed
Merge branch 'docs/pep750-first-pass' of github.com:t-strings/cpython into docs/pep750-first-pass
2 parents 687c506 + 7eca01e commit 3827427

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/string.templatelib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Template strings
2424
.. versionadded:: 3.14
2525

2626
Template strings are a formatting mechanism that allows for deep control over
27-
how strings are processed. You can create Templates using
27+
how strings are processed. You can create templates using
2828
:ref:`t-string literal syntax <t-strings>`, which is identical to
2929
:ref:`f-string syntax <f-strings>` but uses a ``t`` instead of an ``f``.
3030
While f-strings evaluate to ``str``, t-strings create a :class:`Template`
@@ -84,8 +84,8 @@ reassigned.
8484

8585
If two or more consecutive interpolations are passed, they will be treated
8686
as separate interpolations and an empty string will be inserted between them.
87-
For example, the following code creates a template with a single value in
88-
the :attr:`~Template.strings` attribute:
87+
For example, the following code creates a template with empty placeholders
88+
in the :attr:`~Template.strings` attribute:
8989

9090
>>> from string.templatelib import Interpolation, Template
9191
>>> template = Template(Interpolation("World", "name"), Interpolation("!", "punctuation"))

0 commit comments

Comments
 (0)