Skip to content

Commit 4ebb816

Browse files
Merge pull request #989 from projektir/fix-links
Fixing links
2 parents 7165334 + ad324c2 commit 4ebb816

File tree

8 files changed

+21
-18
lines changed

8 files changed

+21
-18
lines changed

src/cargo/test.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Testing
22

33
As we know testing is integral to any piece of software! Rust has first-class
4-
support for unit and integration testing ([see that chapter for
5-
more](meta/test.html); or [this
4+
support for unit and integration testing ([see this
65
chapter](https://doc.rust-lang.org/book/second-edition/ch11-00-testing.html) in
76
TRPL).
87

src/error/result/enter_question_mark.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Upon finding an `Err`, there are two valid actions to take:
99
1. `panic!` which we already decided to try to avoid if possible
1010
2. `return` because an `Err` means it cannot be handled
1111

12-
`?` is *almost*[^1] exactly equivalent to an `unwrap` which `return`s
12+
`?` is *almost*[^] exactly equivalent to an `unwrap` which `return`s
1313
instead of `panic`s on `Err`s. Let's see how we can simplify the earlier
1414
example that used combinators:
1515

@@ -67,6 +67,6 @@ fn main() {
6767
```
6868

6969

70-
[^1]: See [re-enter ?][re_enter_?] for more details.
70+
[^]: See [re-enter ?][re_enter_?] for more details.
7171

7272
[re_enter_?]: error/multiple_error_types/reenter_question_mark.html

src/flow_control/match/destructuring/destructure_enum.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ fn main() {
4949

5050
[`#[allow(...)]`][allow], [color models][color_models] and [`enum`][enum]
5151

52-
[allow]: /attribute/unused.html
52+
[allow]: attribute/unused.html
5353
[color_models]: https://en.wikipedia.org/wiki/Color_model
54-
[enum]: /custom_types/enum.html
54+
[enum]: custom_types/enum.html

src/flow_control/match/destructuring/destructure_structures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ fn main() {
2929

3030
### See also:
3131

32-
[Structs](/custom_types/structs.html), [The ref pattern](/scope/borrow/ref.html)
32+
[Structs](custom_types/structs.html), [The ref pattern](scope/borrow/ref.html)

src/flow_control/match/destructuring/destructure_tuple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ fn main() {
2121

2222
### See also:
2323

24-
[Tuples](/primitives/tuples.html)
24+
[Tuples](primitives/tuples.html)

src/macros/syntax.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
In following subsections, we will show how to define macros in Rust.
44
There are three basic ideas:
55

6-
- [Patterns and Designators](macros/designators.md)
7-
- [Overloading](macros/overload.md)
8-
- [Repetition](macros/repeat.md)
6+
- [Patterns and Designators][designators]
7+
- [Overloading][overloading]
8+
- [Repetition][repetition]
9+
10+
[designators]: macros/designators.html
11+
[overloading]: macros/overload.html
12+
[repetition]: macros/repeat.html

src/std_misc/threads/testcase_mapreduce.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ defined by a static constant at the beginning of the program.
140140
* [unwrap vs. expect][unwrap]
141141
* [enumerate][enumerate]
142142

143-
[thread]: /std_misc/threads.html
144-
[vectors]: /std/vec.html
145-
[iterators]: /trait/iter.html
143+
[thread]: std_misc/threads.html
144+
[vectors]: std/vec.html
145+
[iterators]: trait/iter.html
146146
[destructuring]: https://doc.rust-lang.org/book/second-edition/ch18-03-pattern-syntax.html#destructuring-to-break-apart-values
147-
[closures]: /fn/closures.html
148-
[move]: /scope/move.html
147+
[closures]: fn/closures.html
148+
[move]: scope/move.html
149149
[move_closure]: https://doc.rust-lang.org/book/second-edition/ch13-01-closures.html#closures-can-capture-their-environment
150150
[turbofish]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect
151-
[unwrap]: /error/option_unwrap.html
151+
[unwrap]: error/option_unwrap.html
152152
[enumerate]: https://doc.rust-lang.org/book/loops.html#enumerate

src/unsafe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ unsafe blocks are used for:
88

99
* dereferencing raw pointers
1010
* calling a function over FFI (but this is covered in [a previous
11-
chapter](/std_misc/ffi.html) of the book)
11+
chapter](std_misc/ffi.html) of the book)
1212
* changing types through `std::mem::transmute`
1313
* inline assembly
1414

0 commit comments

Comments
 (0)