Skip to content

Commit b5e148b

Browse files
committed
more remove coerce
1 parent 4a355b2 commit b5e148b

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

+stdlib/hard_link_count.m

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

88
function c = hard_link_count(p)
99
arguments
10-
p (1,1) string
10+
p {mustBeTextScalar}
1111
end
1212

1313
c = [];

+stdlib/makedir.m

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

55
function makedir(d)
66
arguments
7-
d (1,1) string
7+
d {mustBeTextScalar}
88
end
99

1010
%% to avoid confusing making ./~/mydir

+stdlib/proximate_to.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
% requires: mex
33

44
%%% Inputs
5-
% * base (1,1) string
6-
% * other (1,1) string
5+
% * base {mustBeTextScalar}
6+
% * other {mustBeTextScalar}
77
%%% Outputs
8-
% * rel (1,1) string
8+
% * rel {mustBeTextScalar}
99
%
1010
% This function is written in C++ using STL <filesystem>
1111

+stdlib/relative_to.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
% requires: mex
33
%
44
%%% Inputs
5-
% * base (1,1) string
6-
% * other (1,1) string
5+
% * base {mustBeTextScalar}
6+
% * other {mustBeTextScalar}
77
%%% Outputs
8-
% * rel (1,1) string
8+
% * rel {mustBeTextScalar}
99
%
1010
% This function is written in C++ using STL <filesystem>
1111
%

+stdlib/set_permissions.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
% optional: mex
33
%
44
%%% Inputs
5-
% * path (1,1) string
5+
% * path {mustBeTextScalar}
66
% * readable (1,1) int (-1 remove read permission, 0 no change, 1 add read permission)
77
% * writable (1,1) int (-1 remove write permission, 0 no change, 1 add write permission)
88
% * executable (1,1) int (-1 remove execute permission, 0 no change, 1 add execute permission)
@@ -11,7 +11,7 @@
1111

1212
function ok = set_permissions(path, readable, writable, executable)
1313
arguments
14-
path (1,1) string {mustBeFile}
14+
path {mustBeTextScalar,mustBeFile}
1515
readable (1,1) int8
1616
writable (1,1) int8
1717
executable (1,1) int8

0 commit comments

Comments
 (0)