changeset 28904:930cb0ae24fd

maint: Don't enclose single output of function with '[]'. * deal.m, gallery.m: Remove unnecessary brackets from around output argument in function prototype.
author Rik <rik@octave.org>
date Tue, 13 Oct 2020 13:24:54 -0700
parents 614a23ddba7a
children 89a425f2c202
files scripts/general/deal.m scripts/special-matrix/gallery.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/deal.m	Tue Oct 13 12:10:40 2020 -0700
+++ b/scripts/general/deal.m	Tue Oct 13 13:24:54 2020 -0700
@@ -84,7 +84,7 @@
 ## @seealso{cell2struct, struct2cell, repmat}
 ## @end deftypefn
 
-function [varargout] = deal (varargin)
+function varargout = deal (varargin)
 
   if (nargin == 0)
     print_usage ();
--- a/scripts/special-matrix/gallery.m	Tue Oct 13 12:10:40 2020 -0700
+++ b/scripts/special-matrix/gallery.m	Tue Oct 13 13:24:54 2020 -0700
@@ -413,7 +413,7 @@
 ## uniformdata) by Nicholas J. Higham <Nicholas.J.Higham@manchester.ac.uk>
 ## Adapted for Octave and into single gallery function by Carnë Draug
 
-function [varargout] = gallery (name, varargin)
+function varargout = gallery (name, varargin)
 
   if (nargin < 1)
     print_usage ();