Skip to main content

diff_words

Function diff_words 

Source
pub fn diff_words(
    left: &str,
    right: &str,
) -> (Vec<Range<usize>>, Vec<Range<usize>>)
Expand description

Byte ranges of the words that differ between two changed lines, on each side. Adjacent ranges are merged.