Skip to content

Commit 8ee1ff5

Browse files
authored
fix lifetime name (#1431)
1 parent 04e1702 commit 8ee1ff5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: src/type-inference.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ tcx.infer_ctxt().enter(|infcx| {
4545
})
4646
```
4747

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

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

0 commit comments

Comments
 (0)