Skip to content

Commit 7086824

Browse files
committed
explicit type
1 parent faec25e commit 7086824

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

+stdlib/get_permissions.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
%
55
%% Inputs
66
% * file: path to check
7+
% * backend: backend to use
78
%% Outputs
89
% * p: permissions string
910
% * b: backend used
1011

11-
function [p, b] = get_permissions(file, backend)
12+
function [perm, b] = get_permissions(file, backend)
1213
arguments
13-
file {mustBeTextScalar}
14+
file (1,1) string
1415
backend (1,:) string = ["native", "legacy"]
1516
end
1617

1718
[fun, b] = hbackend(backend, "get_permissions", 'R2025a');
1819

19-
p = fun(file);
20+
perm = fun(file);
2021

2122
end

+stdlib/h5save.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
function h5save(filename, varname, A, opts)
2222
arguments
23-
filename {mustBeTextScalar}
24-
varname {mustBeTextScalar}
23+
filename (1,1) string
24+
varname (1,1) string
2525
A {mustBeNonempty}
2626
opts.size (1,:) double {mustBeInteger,mustBeNonnegative} = []
2727
opts.type {mustBeTextScalar} = ''

0 commit comments

Comments
 (0)