Skip to content

Commit a234d1e

Browse files
committed
remove unnecessary input string coercion
1 parent 519c422 commit a234d1e

24 files changed

+40
-46
lines changed

+stdlib/get_modtime.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
function t = get_modtime(p)
1010
arguments
11-
p (1,1) string
11+
p {mustBeTextScalar}
1212
end
1313

1414

+stdlib/get_permissions.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
function p = get_permissions(f)
66
arguments
7-
f (1,1) string
7+
f {mustBeTextScalar}
88
end
99

1010
p = '';

+stdlib/h4exists.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
%%% Outputs
88
% * exists: boolean
99
arguments
10-
file (1,1) string
11-
variable (1,1) string
10+
file {mustBeTextScalar}
11+
variable {mustBeTextScalar}
1212
end
1313

1414
sds = hdfinfo(file).SDS;

+stdlib/h4size.m

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

99
function fsize = h4size(file, variable)
1010
arguments
11-
file (1,1) string
12-
variable (1,1) string
11+
file {mustBeTextScalar}
12+
variable {mustBeTextScalar}
1313
end
1414

1515
sds = hdfinfo(file).SDS;

+stdlib/h4variables.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
function names = h4variables(file)
1212
arguments
13-
file (1,1) string
13+
file {mustBeTextScalar}
1414
end
1515

1616
finf = hdfinfo(file);

+stdlib/h5exists.m

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

99
function exists = h5exists(file, variable)
1010
arguments
11-
file (1,1) string
12-
variable (1,1) string
11+
file {mustBeTextScalar}
12+
variable {mustBeTextScalar}
1313
end
1414

1515
exists = false;

+stdlib/h5save.m

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

2121
function h5save(filename, varname, A, opts)
2222
arguments
23-
filename (1,1) string
24-
varname (1,1) string
23+
filename {mustBeTextScalar}
24+
varname {mustBeTextScalar}
2525
A {mustBeNonempty}
2626
opts.size (1,:) double {mustBeInteger,mustBeNonnegative} = []
27-
opts.type (1,1) string = ""
27+
opts.type {mustBeTextScalar} = ''
2828
opts.compressLevel (1,1) double {mustBeInteger,mustBeNonnegative} = 0
2929
end
3030

+stdlib/h5save_exist.m

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

44
function h5save_exist(filename, varname, A, sizeA)
55
arguments
6-
filename (1,1) string
7-
varname (1,1) string
6+
filename {mustBeTextScalar}
7+
varname {mustBeTextScalar}
88
A {mustBeNonempty}
99
sizeA (1,:) double {mustBeInteger,mustBeNonnegative} = []
1010
end

+stdlib/h5save_new.m

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

44
function h5save_new(filename, varname, A, sizeA, compressLevel)
55
arguments
6-
filename (1,1) string
7-
varname (1,1) string
6+
filename {mustBeTextScalar}
7+
varname {mustBeTextScalar}
88
A {mustBeNonempty}
99
sizeA (1,:) double {mustBeInteger,mustBeNonnegative} = []
1010
compressLevel (1,1) double {mustBeInteger,mustBeNonnegative} = 0

+stdlib/h5size.m

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

99
function fsize = h5size(file, variable)
1010
arguments
11-
file (1,1) string
12-
variable (1,1) string
11+
file {mustBeTextScalar}
12+
variable {mustBeTextScalar}
1313
end
1414

1515
dsi = h5info(file, variable).Dataspace;

0 commit comments

Comments
 (0)