Merge pull request #659 from pmarks/patch-1
Some checks are pending
Book / Book (push) Waiting to run
Book / Deploy (push) Blocked by required conditions
Test / Test (push) Waiting to run
Test / Miri (push) Waiting to run
Test / Benchmarks (push) Waiting to run

Out of date comment in overview
This commit is contained in:
Niko Matsakis 2025-01-22 10:41:09 +00:00 committed by GitHub
commit 05445ffede
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`. Just as with an input, new values are created by invoking `Ast::new`. The `new` function on a tracked struct only requires a `&`-reference to the database:
Unlike with an input, the `new` for a tracked struct only requires a `&`-reference to the database:
```rust ```rust
#[salsa::tracked] #[salsa::tracked]