summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2021-01-03 16:24:53 -0800
committerJoshua Nelson <joshua@yottadb.com>2021-01-03 22:31:09 -0500
commit95292a60661405008294f0d84a0625b97deb67ee (patch)
treeab373159c64ecb3b713d9edf0d6a3af892b2c99f /src/doc/rustc-dev-guide
parentbf4e7b347dc273080e62daeef2af8448c69c04e2 (diff)
downloadrust-95292a60661405008294f0d84a0625b97deb67ee.tar.gz
rust-95292a60661405008294f0d84a0625b97deb67ee.zip
Tweak wording around provider purity
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 2d4214ef369..8f38853c422 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
@@ -38,10 +38,10 @@ corresponding result. However, we have to apply some restrictions in order for
 this to be sound:
 
  - The key and result must be immutable values.
- - The provider function must be a pure function, that is, for the same key it
-   must always yield the same result.
+ - The provider function must be a pure function in the sense that for the same
+   key it must always yield the same result.
  - The only parameters a provider function takes are the key and a reference to
-   the "query context" (which provides access to rest of the "database").
+   the "query context" (which provides access to the rest of the "database").
 
 The database is built up lazily by invoking queries. The query providers will
 invoke other queries, for which the result is either already cached or computed