summaryrefslogtreecommitdiffstats
path: root/vendor/similar/examples/large.rs
blob: 08200f8b7d3d0dba5358ec3447763021426d7246 (plain)
1
2
3
4
5
6
7
8
use similar::TextDiff;

fn main() {
    let x = "abc".repeat(2000);
    let y = "abd".repeat(2000);
    let diff = TextDiff::from_chars(&x, &y);
    println!("{}", diff.unified_diff());
}