Skip to main content

print_diff

Function print_diff 

Source
pub fn print_diff(path: &str, original: &str, formatted: &str, color: bool)
Expand description

Print a unified diff to stdout. No-op if texts are identical.

When color is true, headers / hunks / additions / removals are ANSI-styled.