We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502429c commit 71fbe7bCopy full SHA for 71fbe7b
1 file changed
+stdlib/join.m
@@ -2,25 +2,25 @@
2
3
function p = join(base, other)
4
arguments
5
- base (1,1) string
6
- other (1,1) string
+ base {mustBeTextScalar}
+ other {mustBeTextScalar}
7
end
8
9
10
b = stdlib.posix(base);
11
o = stdlib.posix(other);
12
13
-if startsWith(o, "/") || (ispc && stdlib.is_absolute(o))
+if startsWith(o, '/') || (ispc && stdlib.is_absolute(o))
14
p = o;
15
return
16
17
18
p = b;
19
if strlength(o)
20
- if endsWith(p, "/")
+ if endsWith(p, '/')
21
p = strcat(p, o);
22
elseif strlength(p)
23
- p = strcat(p, "/", o);
+ p = strcat(p, '/', o);
24
else
25
26
0 commit comments