Skip to content

Commit 3d3c261

Browse files
gizmondoJohnTitor
andauthored
Fix typo (#635)
* Typo * Update src/queries/query-evaluation-model-in-detail.md Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
1 parent 6b44117 commit 3d3c261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/queries/query-evaluation-model-in-detail.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ would still exist and already executed queries would not have to be re-done.
159159
## Cycles
160160

161161
Earlier we stated that query invocations form a DAG. However, it would be easy
162-
form a cyclic graph by, for example, having a query provider like the following:
162+
to form a cyclic graph by, for example, having a query provider like the
163+
following:
163164

164165
```rust,ignore
165166
fn cyclic_query_provider(tcx, key) -> u32 {
@@ -225,7 +226,7 @@ The nightly compiler already implements parallel query evaluation as follows:
225226

226227
When a query `foo` is evaluated, the cache table for `foo` is locked.
227228

228-
- If there already is a result, we can clone it,release the lock and
229+
- If there already is a result, we can clone it, release the lock and
229230
we are done.
230231
- If there is no cache entry and no other active query invocation computing the
231232
same result, we mark the key as being "in progress", release the lock and
@@ -235,4 +236,3 @@ When a query `foo` is evaluated, the cache table for `foo` is locked.
235236
computed the result we are waiting for. This cannot deadlock because, as
236237
mentioned before, query invocations form a DAG. Some thread will always make
237238
progress.
238-

0 commit comments

Comments
 (0)