Skip to content

Commit 6a13b08

Browse files
committed
single quote lint
1 parent 681341c commit 6a13b08

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

+stdlib/+dotnet/file_checksum.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
function hash = file_checksum(file, hash_method)
66

77
if strcmpi(hash_method, 'sha256')
8-
hash_method = "SHA-256";
8+
hash_method = 'SHA-256';
99
end
1010

1111
file_chunk = 10e6; % arbitrary (bytes) didn't seem to be very sensitive for speed
1212

1313
fid = fopen(file, 'r');
14-
assert(fid > 1, "could not open file %s", file)
14+
assert(fid > 1, 'could not open file %s', file)
1515

1616
try
1717
inst = System.Security.Cryptography.HashAlgorithm.Create(hash_method);

+stdlib/+shell/is_admin.m

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

99
[s, r] = system(cmd);
1010
if s ~= 0
11-
warning("stdlib:is_admin:RuntimeError", "Failed to execute command '%s': %s", cmd, r);
11+
warning('stdlib:is_admin:RuntimeError', 'Failed to execute command "%s": %s', cmd, r);
1212
y = logical([]);
1313
elseif ispc()
1414
y = startsWith(r, 'True');

+stdlib/absolute.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
%% ABSOLUTE Determine absolute path
22
% c = absolute(p);
3-
% Path "p" need not exist.
3+
% Path need not exist.
44
% Absolute path will be relative to pwd if path does not exist.
55
%
66
% c = absolute(p, base);
7-
% the "base" path is used instead of pwd.
7+
% the 'base' path is used instead of pwd.
88
%
99
%%% Inputs
1010
% * p: path to make absolute

+stdlib/doctor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%% DOCTOR - Display information about the platform and environment
22
% works back to very old Matlab (R2011b at least)
3-
% inspired by "brew doctor" and "conda info"
3+
% inspired by 'brew doctor' and 'conda info'
44

55
function json = doctor()
66

+stdlib/h4variables.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%% H4VARIABLES get HDF4 dataset names
22
% get dataset names in a file under group
3-
% default is datasets under "/", optionally under "/group"
3+
% default is datasets under '/', optionally under '/group'
44
%
55
%%% Inputs
66
% * file: filename

+stdlib/perl_version.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%% PERL_VERSION get the Perl version used by MATLAB
22
% cached for speed
3-
% to clear cache do "clear functions"
3+
% to clear cache do 'clear functions'
44
%
55
%%% Output
66
% * v: 1x3 vector of major, minor, micro version e.g. Perl 5.32.1 = [5, 32, 1]

example/sys/relative_to.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
r = stdlib.normalize(r);
2828
end
2929
else
30-
warning("stdlib:relative_to:OSError", "Failed to compute relative path: %s", r);
30+
warning('stdlib:relative_to:OSError', 'Failed to compute relative path: %s', r);
3131
end
3232

3333
end

0 commit comments

Comments
 (0)