Update src/runtime.rs

Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
Aleksey Kladov 2019-09-20 15:19:36 +03:00
parent ec5b92ea20
commit a798f1d918
2 changed files with 2 additions and 3 deletions

View file

@ -16,8 +16,7 @@ That is, when someone requests the text of a file for the first time:
This is possible to achive in salsa, using a derived query and `report_synthetic_read` and `invalidate` queries.
The setup looks roughtly like this:
```rust
```rust,ignore
#[salsa::query_group(VfsDatabaseStorage)]
trait VfsDatabase: salsa::Database + FileWathcer {
fn read(&self, path: PathBuf) -> String;

View file

@ -396,7 +396,7 @@ where
.report_untracked_read(self.current_revision());
}
/// Fores the durebility of the current query to at most `durability`.
/// Fores the durability of the current query to at most `durability`.
///
/// This is mostly useful to lower durability level of derived queries with
/// zero inputs.