]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Emend an error in ``string.templatelib`` example output (#137890)
authorChristoph Walcher <christoph-wa@gmx.de>
Sun, 17 Aug 2025 22:12:32 +0000 (00:12 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Aug 2025 22:12:32 +0000 (23:12 +0100)
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', ''),)
    )