diff options
author | Steffen Zeile <48187781+Kaniee@users.noreply.github.com> | 2021-07-26 21:35:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 21:35:09 (GMT) |
commit | 6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931 (patch) | |
tree | e46dbda0cdc525b662d789426e977835ca326fa2 /Doc/library | |
parent | a2c45e5bcf9d3dfff9f2699dbc161489897616b5 (diff) | |
download | cpython-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.rst | 2 |
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'] |