Skip to content

Commit

Permalink
pythongh-120567: Clarify weekday return in calendar.monthrange docstr…
Browse files Browse the repository at this point in the history
…ing (python#120570)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
terryjreedy and hugovk authored Jun 16, 2024
1 parent 4f59f86 commit bd4516d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def weekday(year, month, day):


def monthrange(year, month):
"""Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
year, month."""
"""Return weekday of first day of month (0-6 ~ Mon-Sun)
and number of days (28-31) for year, month."""
if not 1 <= month <= 12:
raise IllegalMonthError(month)
day1 = weekday(year, month, 1)
Expand Down

0 comments on commit bd4516d

Please sign in to comment.