Skip to content

Commit a22b32d

Browse files
committed
Clarify doc comment
1 parent ef5cd76 commit a22b32d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/display/context.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ pub(crate) fn all_matched_lines_filled(
2727
/// Extend `matched_lines` to include the leading and trailing lines
2828
/// in the file.
2929
///
30-
/// If the leading or trailing lines are blank, we won't have any
31-
/// MatchedPos values corresponding with those lines.
30+
/// This is useful when the file contains blank lines at the beginning
31+
/// or end. Those lines won't have MatchedPos values associated with
32+
/// them, but we still want to match them up.
3233
fn add_ends(
3334
matched_lines: &[(Option<LineNumber>, Option<LineNumber>)],
3435
lhs_lines: &[&str],

0 commit comments

Comments
 (0)