Skip to content

Commit bc681d7

Browse files
manoj-km24miss-islington
authored andcommitted
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 bef4d84 commit bc681d7

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)
@@ -400,7 +400,7 @@ For simple text calendars this module provides the following functions.
400400

401401
.. function:: monthrange(year, month)
402402

403-
Returns weekday of first day of the month and number of days in month, for the
403+
Returns weekday of first day of the month and number of days in month, for the
404404
specified *year* and *month*.
405405

406406

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

444444

0 commit comments

Comments
 (0)