Mercurial > octave
diff scripts/miscellaneous/mustBeInteger.m @ 27969:a9a8699a3749
Remove argouts from new validator functions (Bug #57627).
The argouts are a non-Matlab-compatible extension that got pulled over from Validoozy by mistake.
author | Andrew Janke <andrew@apjanke.net> |
---|---|
date | Mon, 20 Jan 2020 00:13:21 -0500 |
parents | c9dd91b438fd |
children | a2177e663979 |
line wrap: on
line diff
--- a/scripts/miscellaneous/mustBeInteger.m Mon Jan 20 00:08:43 2020 -0500 +++ b/scripts/miscellaneous/mustBeInteger.m Mon Jan 20 00:13:21 2020 -0500 @@ -24,7 +24,7 @@ ######################################################################## ## -*- texinfo -*- -## @deftypefn {} {@var{x} =} mustBeInteger (@var{x}) +## @deftypefn {} {} mustBeInteger (@var{x}) ## ## Requires that input @var{x} is integer-valued (but not necessarily ## integer-typed). @@ -34,7 +34,7 @@ ## ## @end deftypefn -function x = mustBeInteger (x) +function mustBeInteger (x) if isinteger (x) || islogical (x) return endif