]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Emend an error in ``string.templatelib`` example output (GH-137890) (#137892)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Aug 2025 11:07:47 +0000 (13:07 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Aug 2025 11:07:47 +0000 (14:07 +0300)
Emend an error in ``string.templatelib`` example output (GH-137890)
(cherry picked from commit 8e3244d39b8cd3d7cef5a315247d45e801b35869)

Co-authored-by: Christoph Walcher <christoph-wa@gmx.de>
Doc/library/string.templatelib.rst

index 19daf352bdc5fc64eec871c16a015a186b1b9251..85d65fa9de1e22043d867d96abf51f2a27e74a7f 100644 (file)
@@ -34,7 +34,7 @@ To write a t-string, use a ``'t'`` prefix instead of an ``'f'``, like so:
    >>> pi = 3.14
    >>> t't-strings are new in Python {pi!s}!'
    Template(
-      strings=('t-strings are new in Python ', '.'),
+      strings=('t-strings are new in Python ', '!'),
       interpolations=(Interpolation(3.14, 'pi', 's', ''),)
    )