summaryrefslogtreecommitdiffstats
path: root/vendor/similar/examples/large.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/similar/examples/large.rs')
-rw-r--r--vendor/similar/examples/large.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/similar/examples/large.rs b/vendor/similar/examples/large.rs
new file mode 100644
index 0000000..08200f8
--- /dev/null
+++ b/vendor/similar/examples/large.rs
@@ -0,0 +1,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());
+}