Skip to content

Commit 5ba6480

Browse files
committed
Auto merge of #11877 - samueltardieu:doc-fix, r=flip1995
`TypeckResults::node_type()` can be used inside of bodies Doc fix. changelog: none
2 parents f30a859 + a7c59ab commit 5ba6480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/development/type_checking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ an `u32`. As far as `hir::Ty` is concerned those might be different types. But a
119119
understands that they're the same type, in-depth lifetimes, etc...
120120

121121
To get from a `hir::Ty` to a `ty::Ty`, you can use the [`hir_ty_to_ty`][hir_ty_to_ty] function outside of bodies or
122-
outside of bodies the [`TypeckResults::node_type()`][node_type] method.
122+
the [`TypeckResults::node_type()`][node_type] method inside of bodies.
123123

124124
> **Warning**: Don't use `hir_ty_to_ty` inside of bodies, because this can cause ICEs.
125125

0 commit comments

Comments
 (0)