Function print_changes

Source
pub fn print_changes(old: &str, new: &str)
Expand description

Prints a diff of changes between two strings.

If there are no changes between old and new, prints a debug message indicating so. Otherwise, prints a unified diff of the changes, with + indicating lines that are present in new but not old, - indicating lines that are present in old but not new, and lines that are the same in both are prefixed with a space.