Skip to content

Commit 8e3244d

Browse files
authored
Emend an error in string.templatelib example output (#137890)
1 parent 25b9728 commit 8e3244d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/string.templatelib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To write a t-string, use a ``'t'`` prefix instead of an ``'f'``, like so:
3434
>>> pi = 3.14
3535
>>> t't-strings are new in Python {pi!s}!'
3636
Template(
37-
strings=('t-strings are new in Python ', '.'),
37+
strings=('t-strings are new in Python ', '!'),
3838
interpolations=(Interpolation(3.14, 'pi', 's', ''),)
3939
)
4040

0 commit comments

Comments
 (0)