We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69cf010 commit 0a3eea0Copy full SHA for 0a3eea0
src/hir.md
@@ -96,7 +96,7 @@ with a HIR node.
96
97
For example, if you have a [`DefId`], and you would like to convert it
98
to a [`NodeId`], you can use
99
-[`tcx.hir.as_local_node_id(def_id)`][as_local_node_id]. This returns
+[`tcx.hir().as_local_node_id(def_id)`][as_local_node_id]. This returns
100
an `Option<NodeId>` – this will be `None` if the def-id refers to
101
something outside of the current crate (since then it has no HIR
102
node), but otherwise returns `Some(n)` where `n` is the node-id of the
0 commit comments