summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSteffen Zeile <48187781+Kaniee@users.noreply.github.com>2021-07-26 21:35:09 (GMT)
committerGitHub <noreply@github.com>2021-07-26 21:35:09 (GMT)
commit6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931 (patch)
treee46dbda0cdc525b662d789426e977835ca326fa2 /Doc/library
parenta2c45e5bcf9d3dfff9f2699dbc161489897616b5 (diff)
downloadcpython-6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931.zip
cpython-6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931.tar.gz
cpython-6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931.tar.bz2
Fix typos in `Weekday.today` example (GH-27363)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/enum.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 89ce94b..8fcebf1 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']