Mercurial > hg > octave-terminal
changeset 10632:69a715c81eab
help.m: avoid unnecessary use of varargout
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 May 2010 17:36:41 -0400 |
parents | 10df75a24242 |
children | d022061c288d |
files | scripts/ChangeLog scripts/help/help.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-05-13 John W. Eaton <jwe@octave.org> + + * help/help.m: Avoid unnecessary use of varargout. + 2010-05-13 Qianqian Fang <fangq> * miscellaneous/tempdir.m: Add filesep to end of tempdir (bug #29864).
--- a/scripts/help/help.m +++ b/scripts/help/help.m @@ -32,7 +32,7 @@ ## @seealso{doc, lookfor, which} ## @end deftypefn -function varargout = help (name) +function retval = help (name) if (nargin == 0) @@ -83,7 +83,7 @@ which (name); printf ("\n%s\n%s", text, __additional_help_message__ ()); else - varargout = {text}; + retval = text; endif else