|
25 | 25 | ///
|
26 | 26 | /// For more information on what `as` is capable of, see the [Reference]
|
27 | 27 | ///
|
28 |
| -/// [Reference]: |
29 |
| -/// https://doc.rust-lang.org/reference/expressions/operator-expr.html#type-cast-expressions |
| 28 | +/// [Reference]: ../reference/expressions/operator-expr.html#type-cast-expressions |
30 | 29 | /// [`crate`]: keyword.crate.html
|
31 | 30 | mod as_keyword { }
|
32 | 31 |
|
@@ -80,8 +79,8 @@ mod as_keyword { }
|
80 | 79 | ///
|
81 | 80 | /// [pointer]: primitive.pointer.html
|
82 | 81 | /// [Rust Book]:
|
83 |
| -/// https://doc.rust-lang.org/stable/book/2018-edition/ch03-01-variables-and-mutability.html#differences-between-variables-and-constants |
84 |
| -/// [Reference]: https://doc.rust-lang.org/reference/items/constant-items.html |
| 82 | +/// ../book/ch03-01-variables-and-mutability.html#differences-between-variables-and-constants |
| 83 | +/// [Reference]: ../reference/items/constant-items.html |
85 | 84 | mod const_keyword { }
|
86 | 85 |
|
87 | 86 | #[doc(keyword = "crate")]
|
@@ -114,7 +113,7 @@ mod const_keyword { }
|
114 | 113 | /// }
|
115 | 114 | /// ```
|
116 | 115 | ///
|
117 |
| -/// [Reference]: https://doc.rust-lang.org/reference/items/extern-crates.html |
| 116 | +/// [Reference]: ../reference/items/extern-crates.html |
118 | 117 | mod crate_keyword { }
|
119 | 118 |
|
120 | 119 | #[doc(keyword = "enum")]
|
@@ -169,8 +168,8 @@ mod crate_keyword { }
|
169 | 168 | ///
|
170 | 169 | /// [Algebraic Data Types]: https://en.wikipedia.org/wiki/Algebraic_data_type
|
171 | 170 | /// [`Option`]: option/enum.Option.html
|
172 |
| -/// [Rust Book]: https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html |
173 |
| -/// [Reference]: https://doc.rust-lang.org/reference/items/enumerations.html |
| 171 | +/// [Rust Book]: ../book/ch06-01-defining-an-enum.html |
| 172 | +/// [Reference]: ../reference/items/enumerations.html |
174 | 173 | mod enum_keyword { }
|
175 | 174 |
|
176 | 175 | #[doc(keyword = "extern")]
|
@@ -211,8 +210,8 @@ mod enum_keyword { }
|
211 | 210 | /// For more information on FFI, check the [Rust book] or the [Reference].
|
212 | 211 | ///
|
213 | 212 | /// [Rust book]:
|
214 |
| -/// https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html#using-extern-functions-to-call-external-code |
215 |
| -/// [Reference]: https://doc.rust-lang.org/reference/items/external-blocks.html |
| 213 | +/// ../book/ch19-01-unsafe-rust.html#using-extern-functions-to-call-external-code |
| 214 | +/// [Reference]: ../reference/items/external-blocks.html |
216 | 215 | mod extern_keyword { }
|
217 | 216 |
|
218 | 217 | #[doc(keyword = "fn")]
|
@@ -278,8 +277,8 @@ mod extern_keyword { }
|
278 | 277 | ///
|
279 | 278 | /// [`impl`]: keyword.impl.html
|
280 | 279 | /// [`extern`]: keyword.extern.html
|
281 |
| -/// [Rust book]: https://doc.rust-lang.org/book/ch03-03-how-functions-work.html |
282 |
| -/// [Reference]: https://doc.rust-lang.org/reference/items/functions.html |
| 280 | +/// [Rust book]: ../book/ch03-03-how-functions-work.html |
| 281 | +/// [Reference]: ../reference/items/functions.html |
283 | 282 | mod fn_keyword { }
|
284 | 283 |
|
285 | 284 | #[doc(keyword = "for")]
|
@@ -352,12 +351,11 @@ mod fn_keyword { }
|
352 | 351 | /// For more information on for-loops, see the [Rust book] or the [Reference].
|
353 | 352 | ///
|
354 | 353 | /// [`impl`]: keyword.impl.html
|
355 |
| -/// [higher-ranked trait bounds]: |
356 |
| -/// https://doc.rust-lang.org/nightly/reference/trait-bounds.html#higher-ranked-trait-bounds |
| 354 | +/// [higher-ranked trait bounds]: ../reference/trait-bounds.html#higher-ranked-trait-bounds |
357 | 355 | /// [`IntoIterator`]: iter/trait.IntoIterator.html
|
358 | 356 | /// [Rust book]:
|
359 |
| -/// https://doc.rust-lang.org/book/2018-edition/ch03-05-control-flow.html#looping-through-a-collection-with-for |
360 |
| -/// [Reference]: https://doc.rust-lang.org/reference/expressions/loop-expr.html#iterator-loops |
| 357 | +/// ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for |
| 358 | +/// [Reference]: ../reference/expressions/loop-expr.html#iterator-loops |
361 | 359 | mod for_keyword { }
|
362 | 360 |
|
363 | 361 | #[doc(keyword = "if")]
|
@@ -430,9 +428,8 @@ mod for_keyword { }
|
430 | 428 | ///
|
431 | 429 | /// For more information on `if` expressions, see the [Rust book] or the [Reference].
|
432 | 430 | ///
|
433 |
| -/// [Rust book]: |
434 |
| -/// https://doc.rust-lang.org/stable/book/2018-edition/ch03-05-control-flow.html#if-expressions |
435 |
| -/// [Reference]: https://doc.rust-lang.org/reference/expressions/if-expr.html |
| 431 | +/// [Rust book]: ../book/ch03-05-control-flow.html#if-expressions |
| 432 | +/// [Reference]: ../reference/expressions/if-expr.html |
436 | 433 | mod if_keyword { }
|
437 | 434 |
|
438 | 435 | #[doc(keyword = "impl")]
|
@@ -493,10 +490,9 @@ mod if_keyword { }
|
493 | 490 | ///
|
494 | 491 | /// For more information on `impl Trait` syntax, see the [Rust book][book2].
|
495 | 492 | ///
|
496 |
| -/// [book1]: https://doc.rust-lang.org/stable/book/2018-edition/ch05-03-method-syntax.html |
497 |
| -/// [Reference]: https://doc.rust-lang.org/reference/items/implementations.html |
498 |
| -/// [book2]: |
499 |
| -/// https://doc.rust-lang.org/stable/book/2018-edition/ch10-02-traits.html#returning-traits |
| 493 | +/// [book1]: ../book/ch05-03-method-syntax.html |
| 494 | +/// [Reference]: ../reference/items/implementations.html |
| 495 | +/// [book2]: ../book/ch10-02-traits.html#returning-types-that-implement-traits |
500 | 496 | mod impl_keyword { }
|
501 | 497 |
|
502 | 498 | #[doc(keyword = "let")]
|
@@ -554,13 +550,12 @@ mod impl_keyword { }
|
554 | 550 | /// enumerations. `while let` also exists, which runs a loop with a pattern matched value until
|
555 | 551 | /// that pattern can't be matched.
|
556 | 552 | ///
|
557 |
| -/// For more information on the `let` keyword, see the [Rust book] or the [Reference] |
| 553 | +/// For more information on the `let` keyword, see the [Rust book][book2] or the [Reference] |
558 | 554 | ///
|
559 |
| -/// [book1]: https://doc.rust-lang.org/stable/book/2018-edition/ch06-02-match.html |
| 555 | +/// [book1]: ../book/ch06-02-match.html |
560 | 556 | /// [`if`]: keyword.if.html
|
561 |
| -/// [book2]: |
562 |
| -/// https://doc.rust-lang.org/stable/book/2018-edition/ch18-01-all-the-places-for-patterns.html#let-statements |
563 |
| -/// [Reference]: https://doc.rust-lang.org/reference/statements.html#let-statements |
| 557 | +/// [book2]: ../book/ch18-01-all-the-places-for-patterns.html#let-statements |
| 558 | +/// [Reference]: ../reference/statements.html#let-statements |
564 | 559 | mod let_keyword { }
|
565 | 560 |
|
566 | 561 | #[doc(keyword = "loop")]
|
@@ -605,7 +600,7 @@ mod let_keyword { }
|
605 | 600 | ///
|
606 | 601 | /// For more information on `loop` and loops in general, see the [Reference].
|
607 | 602 | ///
|
608 |
| -/// [Reference]: https://doc.rust-lang.org/reference/expressions/loop-expr.html |
| 603 | +/// [Reference]: ../reference/expressions/loop-expr.html |
609 | 604 | mod loop_keyword { }
|
610 | 605 |
|
611 | 606 | #[doc(keyword = "struct")]
|
@@ -712,6 +707,6 @@ mod loop_keyword { }
|
712 | 707 | /// [Reference][reference].
|
713 | 708 | ///
|
714 | 709 | /// [`PhantomData`]: marker/struct.PhantomData.html
|
715 |
| -/// [book]: https://doc.rust-lang.org/book/ch05-01-defining-structs.html |
716 |
| -/// [reference]: https://doc.rust-lang.org/reference/items/structs.html |
| 710 | +/// [book]: ../book/ch05-01-defining-structs.html |
| 711 | +/// [reference]: ../reference/items/structs.html |
717 | 712 | mod struct_keyword { }
|
0 commit comments