Skip to content

Commit af2aa99

Browse files
mark-i-mJoshua Nelson
authored and
Joshua Nelson
committed
fix a couple links
1 parent f98c407 commit af2aa99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/pat-exhaustive-checking.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ fn foo(Foo { x, y }: Foo) {
8080

8181
## The algorithm
8282

83-
Exhaustiveness checking is implemented in [check_match].
84-
The core of the algorithm is in [_match].
83+
Exhaustiveness checking is implemented in [`check_match`].
84+
The core of the algorithm is in [`usefulness`].
8585
That file contains a detailed description of the algorithm.
8686

87-
[check_match]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/pattern/check_match/index.html
88-
[_match]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/pattern/_match/index.html
87+
[`check_match`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/pattern/check_match/index.html
88+
[`usefulness`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/pattern/usefulness/index.html

src/traits/hrtb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ subtyping, we recommend you read the paper). There are a few parts:
4242

4343
[hrsubtype]: ./hrtb.md
4444
[placeholder]: ../appendix/glossary.html#placeholder
45-
[paper by SPJ]: http://research.microsoft.com/en-us/um/people/simonpj/papers/higher-rank/
45+
[paper by SPJ]: https://www.microsoft.com/en-us/research/publication/practical-type-inference-for-arbitrary-rank-types
4646

4747
So let's work through our example.
4848

0 commit comments

Comments
 (0)