Files
simple-rust-tests/__diff/diffy/src/main.rs
2020-10-17 12:01:53 +08:00

17 lines
264 B
Rust

use diffy::PatchFormatter;
const A: &str = r##"
hello world
hatter
"##;
const B: &str = r##"
hello world
hatterj
"##;
fn main() {
let patch = diffy::create_patch(A, B);
let f = PatchFormatter::new().with_color();
print!("{}", f.fmt_patch(&patch));
}