Renamed variable in readme
This commit is contained in:
parent
058924614a
commit
f7f10ce781
1 changed files with 2 additions and 2 deletions
|
|
@ -16,14 +16,14 @@ to generate unified diffs).
|
||||||
use similar::algorithms::Algorithm;
|
use similar::algorithms::Algorithm;
|
||||||
use similar::text::unified_diff;
|
use similar::text::unified_diff;
|
||||||
|
|
||||||
let unified_diff = unified_diff(
|
let udiff = unified_diff(
|
||||||
Algorithm::Patience,
|
Algorithm::Patience,
|
||||||
old_text,
|
old_text,
|
||||||
new_text,
|
new_text,
|
||||||
3,
|
3,
|
||||||
Some(("old.txt", "new.text"))
|
Some(("old.txt", "new.text"))
|
||||||
);
|
);
|
||||||
println!("{}", unified_diff);
|
println!("{}", udiff);
|
||||||
```
|
```
|
||||||
|
|
||||||
## License and Links
|
## License and Links
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue