fix lifetime name (#1431)
This commit is contained in:
parent
04e1702ebc
commit
8ee1ff5a9e
|
|
@ -45,11 +45,9 @@ tcx.infer_ctxt().enter(|infcx| {
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
Within the closure, `infcx` has the type `InferCtxt<'cx, 'tcx>` for some
|
Within the closure,
|
||||||
fresh `'cx`, while `'tcx` is the same as outside the inference context.
|
`infcx` has the type `InferCtxt<'a, 'tcx>` for some fresh `'a`,
|
||||||
(Again, see the [`ty` chapter][ty-ch] for more details on this setup.)
|
while `'tcx` is the same as outside the inference context.
|
||||||
|
|
||||||
[ty-ch]: ty.html
|
|
||||||
|
|
||||||
The `tcx.infer_ctxt` method actually returns a builder, which means
|
The `tcx.infer_ctxt` method actually returns a builder, which means
|
||||||
there are some kinds of configuration you can do before the `infcx` is
|
there are some kinds of configuration you can do before the `infcx` is
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue