From a798f1d918ed2549369bf432b3e0c8bae2f30eeb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 20 Sep 2019 15:19:36 +0300 Subject: [PATCH] Update src/runtime.rs Co-Authored-By: bjorn3 --- book/src/common_patterns.md | 3 +-- src/runtime.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/book/src/common_patterns.md b/book/src/common_patterns.md index 439dabc6..f54c8d1e 100644 --- a/book/src/common_patterns.md +++ b/book/src/common_patterns.md @@ -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; diff --git a/src/runtime.rs b/src/runtime.rs index 5a7f8fa9..7585b77f 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -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.