We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5cd76 commit a22b32dCopy full SHA for a22b32d
src/display/context.rs
@@ -27,8 +27,9 @@ pub(crate) fn all_matched_lines_filled(
27
/// Extend `matched_lines` to include the leading and trailing lines
28
/// in the file.
29
///
30
-/// If the leading or trailing lines are blank, we won't have any
31
-/// MatchedPos values corresponding with those lines.
+/// This is useful when the file contains blank lines at the beginning
+/// or end. Those lines won't have MatchedPos values associated with
32
+/// them, but we still want to match them up.
33
fn add_ends(
34
matched_lines: &[(Option<LineNumber>, Option<LineNumber>)],
35
lhs_lines: &[&str],
0 commit comments