docs: fix incorrect Tree::edit example in README.md

This commit is contained in:
Thanabodee Charoenpiriyakij 2024-02-08 03:24:02 +07:00 committed by GitHub
parent 96a440af35
commit 9fb06643f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,