Skip to content

Commit 0a3eea0

Browse files
committed
hir -> hir()
1 parent 69cf010 commit 0a3eea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ with a HIR node.
9696

9797
For example, if you have a [`DefId`], and you would like to convert it
9898
to a [`NodeId`], you can use
99-
[`tcx.hir.as_local_node_id(def_id)`][as_local_node_id]. This returns
99+
[`tcx.hir().as_local_node_id(def_id)`][as_local_node_id]. This returns
100100
an `Option<NodeId>` – this will be `None` if the def-id refers to
101101
something outside of the current crate (since then it has no HIR
102102
node), but otherwise returns `Some(n)` where `n` is the node-id of the

0 commit comments

Comments
 (0)