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:
Patrick Marks 2025-01-21 15:40:39 +01:00 committed by GitHub
parent e4d65a656f
commit e456424bb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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