Mercurial > octave-antonio
diff scripts/time/is_leap_year.m @ 11431:0d9640d755b1
Improve docstrings for all isXXX functions.
Use 'return true' rather than 'return 1'.
Improve the cross-referencing through seealso links.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Fri, 31 Dec 2010 13:20:44 -0800 |
parents | 693e22af08ae |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/time/is_leap_year.m Fri Dec 31 09:56:44 2010 -0800 +++ b/scripts/time/is_leap_year.m Fri Dec 31 13:20:44 2010 -0800 @@ -17,9 +17,10 @@ ## <http://www.gnu.org/licenses/>. ## -*- texinfo -*- -## @deftypefn {Function File} {} is_leap_year (@var{year}) -## Return 1 if the given year is a leap year and 0 otherwise. If no -## arguments are provided, @code{is_leap_year} will use the current year. +## @deftypefn {Function File} {} is_leap_year () +## @deftypefnx {Function File} {} is_leap_year (@var{year}) +## Return true if the given year is a leap year and false otherwise. If no +## year is provided, @code{is_leap_year} will use the current year. ## For example: ## ## @example