Skip to content

Commit 9cbb731

Browse files
miss-islingtonwiomoc
authored andcommitted
[3.14] Emend an error in string.templatelib example output (pythonGH-137890) (python#137892)
Emend an error in ``string.templatelib`` example output (pythonGH-137890) (cherry picked from commit 8e3244d) Co-authored-by: Christoph Walcher <[email protected]>
1 parent 52ddd95 commit 9cbb731

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)