diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst index fb0ffc73b48c40c..0dc1481aeff01dd 100644 --- a/Doc/library/calendar.rst +++ b/Doc/library/calendar.rst @@ -169,10 +169,10 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is the specified width, representing an empty day. The *weekday* parameter is unused. - .. method:: formatweek(theweek, w=0) + .. method:: formatweek(theweek, width) - Return a single week in a string with no newline. If *w* is provided, it - specifies the width of the date columns, which are centered. Depends + Return a single week in a string with no newline. *width* specifies + the width of the date columns, which are centered. Depends on the first weekday as specified in the constructor or set by the :meth:`setfirstweekday` method. @@ -200,7 +200,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is :meth:`setfirstweekday` method. - .. method:: formatmonthname(theyear, themonth, width=0, withyear=True) + .. method:: formatmonthname(theyear, themonth, width, withyear=True) Return a string representing the month's name centered within the specified *width*. If *withyear* is ``True``, include the year in the