Skip to content

Commit 983c746

Browse files
authored
Docs: Fix some typos in calendar.rst (GH-148756)
1 parent 5c5dae0 commit 983c746

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/calendar.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
5454

5555
.. method:: setfirstweekday(firstweekday)
5656

57-
Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6)
57+
Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6).
5858

5959
Identical to setting the :attr:`~Calendar.firstweekday` property.
6060

6161
.. method:: iterweekdays()
6262

63-
Return an iterator for the week day numbers that will be used for one
63+
Return an iterator for the weekday numbers that will be used for one
6464
week. The first value from the iterator will be the same as the value of
6565
the :attr:`~Calendar.firstweekday` property.
6666

@@ -86,7 +86,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
8686
Return an iterator for the month *month* in the year *year* similar to
8787
:meth:`itermonthdates`, but not restricted by the :class:`datetime.date`
8888
range. Days returned will be tuples consisting of a day of the month
89-
number and a week day number.
89+
number and a weekday number.
9090

9191

9292
.. method:: itermonthdays3(year, month)
@@ -408,7 +408,7 @@ For simple text calendars this module provides the following functions.
408408

409409
.. function:: monthrange(year, month)
410410

411-
Returns weekday of first day of the month and number of days in month, for the
411+
Returns weekday of first day of the month and number of days in month, for the
412412
specified *year* and *month*.
413413

414414

@@ -446,7 +446,7 @@ For simple text calendars this module provides the following functions.
446446
An unrelated but handy function that takes a time tuple such as returned by
447447
the :func:`~time.gmtime` function in the :mod:`time` module, and returns the
448448
corresponding Unix timestamp value, assuming an epoch of 1970, and the POSIX
449-
encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each others'
449+
encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each other's
450450
inverse.
451451

452452

0 commit comments

Comments
 (0)