docs: fix incorrect Tree::edit example in README.md
This commit is contained in:
parent
96a440af35
commit
9fb06643f3
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ Passing in the previous edited tree makes `parse` run much more quickly:
|
|||
```rust
|
||||
let new_source_code = "fn test(a: u32) {}"
|
||||
|
||||
tree.edit(InputEdit {
|
||||
tree.edit(&InputEdit {
|
||||
start_byte: 8,
|
||||
old_end_byte: 8,
|
||||
new_end_byte: 14,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue