mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 19:08:32 +00:00
Merge #357
357: Add missing `db` param in salsa::input book example r=nikomatsakis a=Veykril Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
6fe5062548
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ Finally, you can also modify the value of an input field by using the setter met
|
||||||
Since this is modifying the input, the setter takes an `&mut`-reference to the database:
|
Since this is modifying the input, the setter takes an `&mut`-reference to the database:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
file.set_contents(String::from("fn foo() { /* add a comment */ }"));
|
file.set_contents(&mut db, String::from("fn foo() { /* add a comment */ }"));
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tracked functions
|
## Tracked functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue