Skip to main content

build_line_hunks

Function build_line_hunks 

Source
pub fn build_line_hunks(
    old_text: &str,
    new_text: &str,
    context_lines: usize,
) -> Vec<DocDiffHunk>
Expand description

Build line-level hunks between two texts, with context_lines of context around each change. Returns an empty vec when the texts are identical.