Clarify doc comment

pull/907/head
Wilfred Hughes 2025-10-17 18:43:14 +07:00
parent ef5cd765ef
commit a22b32d82d
1 changed files with 3 additions and 2 deletions

@ -27,8 +27,9 @@ pub(crate) fn all_matched_lines_filled(
/// Extend `matched_lines` to include the leading and trailing lines /// Extend `matched_lines` to include the leading and trailing lines
/// in the file. /// in the file.
/// ///
/// If the leading or trailing lines are blank, we won't have any /// This is useful when the file contains blank lines at the beginning
/// MatchedPos values corresponding with those lines. /// or end. Those lines won't have MatchedPos values associated with
/// them, but we still want to match them up.
fn add_ends( fn add_ends(
matched_lines: &[(Option<LineNumber>, Option<LineNumber>)], matched_lines: &[(Option<LineNumber>, Option<LineNumber>)],
lhs_lines: &[&str], lhs_lines: &[&str],