Skip to content

Commit

Permalink
Add comment to displaySchema
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Sep 29, 2023
1 parent 27e50a2 commit 960cd8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions matlab/src/matlab/+arrow/+tabular/+internal/displaySchema.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
% to display bold font and hyperlinks.
names = compose("<strong>%s</strong>", names);
classNames = arrayfun(@(type) string(class(type)), types);

% Creates a string array of with the following form:
%
% ["arrow.type.BooleanType" "Boolean" "arrow.type.StringType" "String" ...]
%
% This string array is passed to the compose call below. The
% format specifier operator supplied to compose contains two
% formatting operators (%s), so compose uses two elements from the
% string array (classNameAndIDs) at a time.
classNameAndIDs = strings([1 numel(typeIDs) * 2]);
classNameAndIDs(1:2:end-1) = classNames;
classNameAndIDs(2:2:end) = typeIDs;
Expand Down

0 comments on commit 960cd8d

Please sign in to comment.