summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorSarthakSingh31 <35749450+SarthakSingh31@users.noreply.github.com>2020-02-26 16:08:35 -0800
committerGitHub <noreply@github.com>2020-02-27 09:08:34 +0900
commitfc249196445cb28796d74e379f6a740a74f1c8d8 (patch)
tree7aaa185a9c4117afbdc370014ef28eea1f3d982a /src/doc/rustc-dev-guide
parent20f098c6165e8333f3301dc83550e434c9ec3ef8 (diff)
downloadrust-fc249196445cb28796d74e379f6a740a74f1c8d8.tar.gz
rust-fc249196445cb28796d74e379f6a740a74f1c8d8.zip
Fixed wrong variable name (#593)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/queries/query-evaluation-model-in-detail.md2
1 files changed, 1 insertions, 1 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 a1fbed2e548..83c12755098 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
@@ -115,7 +115,7 @@ The `type_check_crate` query provider would look something like the following:
 
 ```rust,ignore
 fn type_check_crate_provider(tcx, _key: ()) {
-    let list_of_items = tcx.hir_map.list_of_items();
+    let list_of_hir_items = tcx.hir_map.list_of_items();
 
     for item_def_id in list_of_hir_items {
         tcx.type_check_item(item_def_id);