Add missing db param in book example

This commit is contained in:
Lukas Wirth 2022-08-18 13:00:43 +02:00
parent eca8bad6e9
commit e1a44b5d1d

View file

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