Mercurial > hg > octave-lyh
diff scripts/time/addtodate.m @ 8664:e07e93c04080
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 04 Feb 2009 10:56:23 -0500 |
parents | d448ac8a4874 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/time/addtodate.m +++ b/scripts/time/addtodate.m @@ -34,7 +34,7 @@ elseif (! (ischar (f) && rows (f) == 1)) ## FIXME: enhance the function so that it works with cellstrs of the ## same size as the output. - error ("addtodate: f must be a single row character string.") + error ("addtodate: f must be a single row character string"); endif if (numel (d) == 1 && numel (q) > 1) @@ -69,7 +69,7 @@ mult = struct ("day", 1, "hour", 1/24, "minute", 1/1440, "second", 1/86400); d += q.*mult.(f); else - error ("addtodate: Invalid time unit: %s", f) + error ("addtodate: Invalid time unit: %s", f); endif endfunction