Mercurial > octave
changeset 24930:16155531bda4 stable
maint: Don't use brackets around a single output variable in a function declaration.
* imwrite.m, edit.m, get_description.m: Remove brackets from output variable of
function.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 19 Mar 2018 14:36:58 -0700 |
parents | 996c30831e1a |
children | ecb5688b875f e178a73af18e |
files | scripts/image/imwrite.m scripts/miscellaneous/edit.m scripts/pkg/private/get_description.m |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/imwrite.m Mon Mar 19 14:36:20 2018 -0700 +++ b/scripts/image/imwrite.m Mon Mar 19 14:36:58 2018 -0700 @@ -209,7 +209,7 @@ %! [g] = write_and_read (".jpeg", gray, "quality", 100); %! assert (g, gray); -%!function [compression] = get_bmp_compression (ext, cmap = [], varargin) +%!function compression = get_bmp_compression (ext, cmap = [], varargin) %! gray = repmat (uint8 (0:255), 100, 1); %! filename = [tempname() ext]; %! unwind_protect
--- a/scripts/miscellaneous/edit.m Mon Mar 19 14:36:20 2018 -0700 +++ b/scripts/miscellaneous/edit.m Mon Mar 19 14:36:58 2018 -0700 @@ -493,7 +493,7 @@ if (any (exists == [2, 103])) body = type (name){1}; else - body = ["function [retval] = " basename " (input1, input2)\n\n" ... + body = ["function retval = " basename " (input1, input2)\n\n" ... "endfunction\n"]; endif if (isempty (head))
--- a/scripts/pkg/private/get_description.m Mon Mar 19 14:36:20 2018 -0700 +++ b/scripts/pkg/private/get_description.m Mon Mar 19 14:36:58 2018 -0700 @@ -137,7 +137,7 @@ endfunction -function [valid] = is_valid_pkg_version_string (str) +function valid = is_valid_pkg_version_string (str) ## We are limiting ourselves to this set of characters because the ## version will appear on the filepath. The portable character, according to ## http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_278