Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1529ef8

Browse files
committed
Document that isleap() returns exactly 1 or 0, which is guaranteed by the
docstring. This closes SF bug #485794. Additional (very) small details were added.
1 parent d077ca1 commit 1529ef8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/lib/libcalendar.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ \section{\module{calendar} ---
1212
related to the calendar. By default, these calendars have Monday as
1313
the first day of the week, and Sunday as the last (the European
1414
convention). Use \function{setfirstweekday()} to set the first day of the
15-
week to Sunday (6) or to any other weekday.
15+
week to Sunday (6) or to any other weekday. Parameters that specify
16+
dates are given as integers.
1617

1718
\begin{funcdesc}{setfirstweekday}{weekday}
1819
Sets the weekday (\code{0} is Monday, \code{6} is Sunday) to start
@@ -32,12 +33,12 @@ \section{\module{calendar} ---
3233
\end{funcdesc}
3334

3435
\begin{funcdesc}{isleap}{year}
35-
Returns true if \var{year} is a leap year.
36+
Returns \code{1} if \var{year} is a leap year, otherwise \code{0}.
3637
\end{funcdesc}
3738

3839
\begin{funcdesc}{leapdays}{y1, y2}
3940
Returns the number of leap years in the range
40-
[\var{y1}\ldots\var{y2}).
41+
[\var{y1}\ldots\var{y2}), where \var{y1} and \var{y2} are years.
4142
\end{funcdesc}
4243

4344
\begin{funcdesc}{weekday}{year, month, day}

0 commit comments

Comments
 (0)