Skip to content

Commit

Permalink
[code] rename internal "format" variable names, just to avoid syntax …
Browse files Browse the repository at this point in the history
…highlighting
  • Loading branch information
apjanke committed Feb 7, 2024
1 parent 0769bea commit 2b27437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inst/@table/table.m
Original file line number Diff line number Diff line change
Expand Up @@ -3120,15 +3120,15 @@ function mustBeAllColVectorVars (this)

# Summary stuff

function summary_impl (this, format)
if (nargin < 2 || isempty (format)); format = 'compact'; endif
function summary_impl (this, fmt)
if (nargin < 2 || isempty (fmt)); fmt = 'compact'; endif
infos = {};
for i_var = 1:width (this)
infos{i_var} = summary_for_variable (this, i_var);
endfor
printf ("%s: %d %s by %d %s\n", class (this), height (this), this.DimensionNames{1}, ...
width (this), this.DimensionNames{2});
switch (format)
switch (fmt)
case 'long'
for i_var = 1:numel (infos)
s = infos{i_var};
Expand Down Expand Up @@ -3168,7 +3168,7 @@ function summary_impl (this, format)
endfor
endfor
otherwise
error ('table.summary: invalid format: ''%s''', format);
error ('table.summary: invalid format: ''%s''', fmt);
endswitch
endfunction

Expand Down

0 comments on commit 2b27437

Please sign in to comment.