mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-12-23 08:48:10 +00:00
Out of date comment in overview
*Like* an input, the new for a tracked struct only requires a &-reference to the database:
This commit is contained in:
parent
e4d65a656f
commit
e456424bb3
1 changed files with 1 additions and 2 deletions
|
|
@ -163,8 +163,7 @@ struct Ast<'db> {
|
|||
}
|
||||
```
|
||||
|
||||
Just as with an input, new values are created by invoking `Ast::new`.
|
||||
Unlike with an input, the `new` for a tracked struct only requires a `&`-reference to the database:
|
||||
Just as with an input, new values are created by invoking `Ast::new`, and the `new` for a tracked struct only requires a `&`-reference to the database:
|
||||
|
||||
```rust
|
||||
#[salsa::tracked]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue