Skip to content

Commit 2793b68

Browse files
authored
Fix example according to PEP 750 in "What's new in 3.14" (GH-134727)
A redundant extra part was written. Added a closing tag, to match the usage in PEP 750.
1 parent caad163 commit 2793b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ As another example, generating HTML attributes from data:
278278
279279
attributes = {"src": "shrubbery.jpg", "alt": "looks nice"}
280280
template = t"<img {attributes}>"
281-
assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" class="looks-nice">'
281+
assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" />'
282282
283283
Compared to using an f-string, the ``html`` function has access to template attributes
284284
containing the original information: static strings, interpolations, and values

0 commit comments

Comments
 (0)