Skip to content

Commit 6c7ec72

Browse files
authored
Fix typos in Weekday.today example (GH-27363)
1 parent a2c45e5 commit 6c7ec72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Data Types
273273
... SUNDAY = 7
274274
... @classmethod
275275
... def today(cls):
276-
... print('today is %s' % cls(date.today.isoweekday).naem)
276+
... print('today is %s' % cls(date.today().isoweekday()).name)
277277
>>> dir(Weekday.SATURDAY)
278278
['__class__', '__doc__', '__module__', 'name', 'today', 'value']
279279

0 commit comments

Comments
 (0)