Function difference::print_diff [] [src]

pub fn print_diff(orig: &str, edit: &str, split: &str)

Prints a colorful visual representation of the diff. This is just a convenience function for those who want quick results.

I recommend checking out the examples on how to build your own diff output.

Examples

use difference::print_diff;
print_diff("Diffs are awesome", "Diffs are cool", " ");