Skip to content

Commit 93b9b03

Browse files
committed
fixup! Docs: 'import datetime as dt' in examples
1 parent 12203d9 commit 93b9b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/whatsnew/3.8.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ then the representation of the evaluated expression. For example:
267267
The usual :ref:`f-string format specifiers <f-strings>` allow more
268268
control over how the result of the expression is displayed::
269269

270-
>>> delta = date.today() - member_since
270+
>>> delta = dt.date.today() - member_since
271271
>>> f'{user=!s} {delta.days=:,d}'
272272
'user=eric_idle delta.days=16,075'
273273

0 commit comments

Comments
 (0)