# HG changeset patch # User John W. Eaton # Date 1273786601 14400 # Node ID 69a715c81eab5a1e36a68928f9a51eae971bef24 # Parent 10df75a24242bf5263d1df0277a87ad3e8950752 help.m: avoid unnecessary use of varargout diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-05-13 John W. Eaton + + * help/help.m: Avoid unnecessary use of varargout. + 2010-05-13 Qianqian Fang * miscellaneous/tempdir.m: Add filesep to end of tempdir (bug #29864). diff --git a/scripts/help/help.m b/scripts/help/help.m --- 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