Skip to content

Commit e7ea9eb

Browse files
committed
braces -> brackets
1 parent 589317a commit e7ea9eb

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
Template strings are a mechanism for custom string processing.
2525
They have the full flexibility of Python's :ref:`f-strings`,
2626
but return a :class:`Template` instance that gives access
27-
to the static and interpolated (in curly braces) parts of a string
27+
to the static and interpolated (in curly brackets) parts of a string
2828
*before* they are combined.
2929

3030
To write a t-string, use a ``'t'`` prefix instead of an ``'f'``, like so:
@@ -259,8 +259,8 @@ Types
259259
:type: str
260260

261261
For interpolations created by t-string literals, :attr:`!expression`
262-
is the expression text found inside the curly braces (``{`` & ``}``),
263-
including any whitespace, excluding the curly braces themselves,
262+
is the expression text found inside the curly brackets (``{`` & ``}``),
263+
including any whitespace, excluding the curly brackets themselves,
264264
and ending before the first ``!``, ``:``, or ``=`` if any is present.
265265
For manually created interpolations, :attr:`!expression` is the arbitrary
266266
string provided when constructing the interpolation instance.

0 commit comments

Comments
 (0)