diff scripts/help/help.m @ 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 07933067e4ab
children 2c356a35d7f5
line wrap: on
line diff
--- 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