Skip to main content

compare

Function compare 

Source
pub fn compare(old: &str, new: &str) -> String
Expand description

The change from old to new for reading, line by line: a line that went is struck, a line that came is marked new, and a line changed in place shows its words. No mark spans a line, so every one renders. Accepting it all doesn’t give new back exactly; it’s a view.