Remove obsolete comments

html_output
Wilfred Hughes 2022-02-11 09:26:58 +07:00
parent 88a0c10c9d
commit 99269fcbdf
1 changed files with 3 additions and 4 deletions

@ -135,8 +135,8 @@ pub fn split_and_apply(
styled_parts styled_parts
} }
/// Return a copy of `line` with styles applied to all the spans specified. /// Return a copy of `line` with styles applied to all the spans
/// Dim any parts of the line that have no spans. /// specified.
fn apply_line(line: &str, styles: &[(SingleLineSpan, Style)]) -> String { fn apply_line(line: &str, styles: &[(SingleLineSpan, Style)]) -> String {
if styles.is_empty() && !line.is_empty() { if styles.is_empty() && !line.is_empty() {
return highlight_missing_style_bug(line); return highlight_missing_style_bug(line);
@ -186,8 +186,7 @@ fn group_by_line(
ranges_by_line ranges_by_line
} }
/// Apply the `Style`s to the spans specified. Dim any text that /// Apply the `Style`s to the spans specified.
/// doesn't have any styles applied.
/// ///
/// Tolerant against lines in `s` being shorter than the spans. /// Tolerant against lines in `s` being shorter than the spans.
fn apply(s: &str, styles: &[(SingleLineSpan, Style)]) -> String { fn apply(s: &str, styles: &[(SingleLineSpan, Style)]) -> String {