pub fn print_diff(orig: &str, edit: &str, split: &str)
๐Deprecated since 1.0.0:
Changeset
now implements the Display
trait insteadExpand description
This function is deprecated, Changeset
now implements the Display
trait instead
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", " ");