function helpText = getBuiltinHelpText(metaInfo, justH1)
    helpText = '';

    if ~isempty(metaInfo) && ~isempty(metaInfo.Description)
        helpText = metaInfo.Description;
        if ~justH1 && ~isempty(metaInfo.DetailedDescription)
            helpText = [helpText, newline, metaInfo.DetailedDescription];
        end
    end
end

%   Copyright 2019-2020 The MathWorks, Inc.
