Skip to content

Commit c171c52

Browse files
[3.14] Docs: Fix some typos in calendar.rst (GH-148756) (GH-148795)
Docs: Fix some typos in `calendar.rst` (GH-148756) (cherry picked from commit 983c746) Co-authored-by: Manoj K M <manojkmdev24@gmail.com>
1 parent 7b233c1 commit c171c52

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
@@ -56,13 +56,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
5656

5757
.. method:: setfirstweekday(firstweekday)
5858

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

6161
Identical to setting the :attr:`~Calendar.firstweekday` property.
6262

6363
.. method:: iterweekdays()
6464

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

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

9393

9494
.. method:: itermonthdays3(year, month)
@@ -405,7 +405,7 @@ For simple text calendars this module provides the following functions.
405405

406406
.. function:: monthrange(year, month)
407407

408-
Returns weekday of first day of the month and number of days in month, for the
408+
Returns weekday of first day of the month and number of days in month, for the
409409
specified *year* and *month*.
410410

411411

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

449449

0 commit comments

Comments
 (0)