Fixed wrong variable name (#593)

This commit is contained in:
SarthakSingh31 2020-02-26 16:08:35 -08:00 committed by GitHub
parent ff764756e3
commit 8e0f4d1629
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ The `type_check_crate` query provider would look something like the following:
```rust,ignore ```rust,ignore
fn type_check_crate_provider(tcx, _key: ()) { 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 { for item_def_id in list_of_hir_items {
tcx.type_check_item(item_def_id); tcx.type_check_item(item_def_id);