Update main readme example
This commit is contained in:
parent
4d87fe7495
commit
af25a2d21b
1 changed files with 7 additions and 9 deletions
|
|
@ -19,8 +19,7 @@ fn main() {
|
|||
"Hallo Welt\nThis is the second line.\nThis is life.\nMoar and more",
|
||||
);
|
||||
|
||||
for op in diff.ops() {
|
||||
for change in diff.iter_changes(op) {
|
||||
for change in diff.iter_all_changes() {
|
||||
let sign = match change.tag() {
|
||||
ChangeTag::Delete => "-",
|
||||
ChangeTag::Insert => "+",
|
||||
|
|
@ -28,7 +27,6 @@ fn main() {
|
|||
};
|
||||
print!("{}{}", sign, change);
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue