Skip to content

Commit c583e8b

Browse files
spastorinomark-i-m
authored andcommitted
hir_map -> hir()
1 parent 47ce12a commit c583e8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hir.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ For more detailed information, check out the [chapter on identifiers][ids].
8484
### The HIR Map
8585

8686
Most of the time when you are working with the HIR, you will do so via
87-
the **HIR Map**, accessible in the tcx via [`tcx.hir_map`] (and defined in
87+
the **HIR Map**, accessible in the tcx via [`tcx.hir()`] (and defined in
8888
the [`hir::map`] module). The [HIR map] contains a [number of methods] to
8989
convert between IDs of various kinds and to lookup data associated
9090
with an HIR node.
9191

92-
[`tcx.hir_map`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.GlobalCtxt.html#structfield.hir_map
92+
[`tcx.hir()`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.hir
9393
[`hir::map`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/index.html
9494
[HIR map]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html
9595
[number of methods]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html#methods

0 commit comments

Comments
 (0)