about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorAlex Aktsipetrov <alex.akts@gmail.com>2020-03-27 11:42:53 +0100
committerGitHub <noreply@github.com>2020-03-27 19:42:53 +0900
commit00ae5528a9d3e5370899a5e6e7ed2e0d407169c3 (patch)
treea390917347c3a7d1b9f45b520a8f6489577c5adf /src/doc/rustc-dev-guide
parent7f21fd4d6acc83a7b782b1fa6f60f29f16c5be6c (diff)
downloadrust-00ae5528a9d3e5370899a5e6e7ed2e0d407169c3.tar.gz
rust-00ae5528a9d3e5370899a5e6e7ed2e0d407169c3.zip
Fix typo (#635)
* Typo

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

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/queries/query-evaluation-model-in-detail.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/queries/query-evaluation-model-in-detail.md b/src/doc/rustc-dev-guide/src/queries/query-evaluation-model-in-detail.md
index 5e94f2f03e8..2d4214ef369 100644
--- a/src/doc/rustc-dev-guide/src/queries/query-evaluation-model-in-detail.md
+++ b/src/doc/rustc-dev-guide/src/queries/query-evaluation-model-in-detail.md
@@ -159,7 +159,8 @@ would still exist and already executed queries would not have to be re-done.
 ## Cycles
 
 Earlier we stated that query invocations form a DAG. However, it would be easy
-form a cyclic graph by, for example, having a query provider like the following:
+to form a cyclic graph by, for example, having a query provider like the
+following:
 
 ```rust,ignore
 fn cyclic_query_provider(tcx, key) -> u32 {
@@ -225,7 +226,7 @@ The nightly compiler already implements parallel query evaluation as follows:
 
 When a query `foo` is evaluated, the cache table for `foo` is locked.
 
-- If there already is a result, we can clone it,release the lock and
+- If there already is a result, we can clone it, release the lock and
   we are done.
 - If there is no cache entry and no other active query invocation computing the
   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.
   computed the result we are waiting for. This cannot deadlock because, as
   mentioned before, query invocations form a DAG. Some thread will always make
   progress.
-