Skip to content

Commit

Permalink
fix lifetime name (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang authored Aug 17, 2022
1 parent 04e1702 commit 8ee1ff5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/type-inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ tcx.infer_ctxt().enter(|infcx| {
})
```

Within the closure, `infcx` has the type `InferCtxt<'cx, 'tcx>` for some
fresh `'cx`, while `'tcx` is the same as outside the inference context.
(Again, see the [`ty` chapter][ty-ch] for more details on this setup.)

[ty-ch]: ty.html
Within the closure,
`infcx` has the type `InferCtxt<'a, 'tcx>` for some fresh `'a`,
while `'tcx` is the same as outside the inference context.

The `tcx.infer_ctxt` method actually returns a builder, which means
there are some kinds of configuration you can do before the `infcx` is
Expand Down

0 comments on commit 8ee1ff5

Please sign in to comment.