From 6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931 Mon Sep 17 00:00:00 2001 From: Steffen Zeile <48187781+Kaniee@users.noreply.github.com> Date: Mon, 26 Jul 2021 23:35:09 +0200 Subject: [PATCH] Fix typos in `Weekday.today` example (GH-27363) --- Doc/library/enum.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 89ce94b9f04..8fcebf123ce 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -273,7 +273,7 @@ Data Types ... SUNDAY = 7 ... @classmethod ... def today(cls): - ... print('today is %s' % cls(date.today.isoweekday).naem) + ... print('today is %s' % cls(date.today().isoweekday()).name) >>> dir(Weekday.SATURDAY) ['__class__', '__doc__', '__module__', 'name', 'today', 'value']