File: large.rs

package info (click to toggle)
rust-similar 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 540 kB
  • sloc: makefile: 25; sh: 3
file content (8 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (18)
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());
}