Skip to main content

word_marks

Function word_marks 

Source
pub fn word_marks<'a>(line: &'a str, other: &str) -> Vec<(&'a str, bool)>
Expand description

A line as pieces, each marked whether it differs from the other line: the common prefix and suffix of words stay plain, what lies between is the mend. For the card to show the word that changed, not only the line.