Skip to main content

word_diff_line

Function word_diff_line 

Source
pub fn word_diff_line(old_line: &str, new_line: &str) -> Vec<WordDiffSegment>
Expand description

Compute word-level diff between two lines that were changed

Returns a sequence of segments marking equal, added, and removed words.