Skip to content

Commit

Permalink
feat(bugfix): optional argname in readUntilMatch
Browse files Browse the repository at this point in the history
Use the correct name for the 4th argument name
(`stacksize`).
  • Loading branch information
ocehugo committed Nov 4, 2020
1 parent 96ae07c commit a219777
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Util/File/readUntilMatch.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function [clines, number_of_lines] = readUntilMatch(fid, pattern, is_regex, preallocsize)
%function [clines, number_of_lines] = readUntilMatch(fid, pattern, is_regex, preallocsize)
function [clines, number_of_lines] = readUntilMatch(fid, pattern, is_regex, stacksize)
%function [clines, number_of_lines] = readUntilMatch(fid, pattern, is_regex, stacksize)
%
% Read a file, line by line, until a pattern is found, returning
% all lines read and the total number of lines.
Expand All @@ -11,7 +11,7 @@
% pattern - the string pattern to match
% is_regex - the string pattern is a regex.
% Default: False.
% preallocsize - the preallocation length (N) of the clines cell (1xN).
% stacksize - the preallocation length (N) of the clines cell (1xN).
%
%
% Outputs:
Expand Down

0 comments on commit a219777

Please sign in to comment.