Skip to content

Commit 45db49d

Browse files
committed
Update link text
1 parent 2b9828a commit 45db49d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/type-inference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ tcx.infer_ctxt().enter(|infcx| {
2929

3030
Each inference context creates a short-lived type arena to store the
3131
fresh types and things that it will create, as described in the
32-
[README in the `ty` module][ty-readme]. This arena is created by the `enter`
32+
[chapter on the `ty` module][ty-ch]. This arena is created by the `enter`
3333
function and disposed of after it returns.
3434

35-
[ty-readme]: ty.html
35+
[ty-ch]: ty.html
3636

3737
Within the closure, `infcx` has the type `InferCtxt<'cx, 'gcx, 'tcx>`
3838
for some fresh `'cx` and `'tcx` – the latter corresponds to the lifetime of
3939
this temporary arena, and the `'cx` is the lifetime of the `InferCtxt` itself.
40-
(Again, see the [`ty` README][ty-readme] for more details on this setup.)
40+
(Again, see the [`ty` chapter][ty-ch] for more details on this setup.)
4141

4242
The `tcx.infer_ctxt` method actually returns a build, which means
4343
there are some kinds of configuration you can do before the `infcx` is
@@ -104,9 +104,9 @@ side-effects of constraining type variables and so forth. However, the
104104
actual return type is not `()`, but rather `InferOk<()>`. The
105105
`InferOk` type is used to carry extra trait obligations – your job is
106106
to ensure that these are fulfilled (typically by enrolling them in a
107-
fulfillment context). See the [trait README] for more background on that.
107+
fulfillment context). See the [trait chapter] for more background on that.
108108

109-
[trait README]: trait-resolution.html
109+
[trait chapter]: trait-resolution.html
110110

111111
You can similarly enforce subtyping through `infcx.at(..).sub(..)`. The same
112112
basic concepts as above apply.

0 commit comments

Comments
 (0)