Skip to content

Upgrade links to match mdbook 0.2 #1199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ Attributes can have multiple values and can be separated over multiple lines, to
value4, value5)]
```

[cfg]: attribute/cfg.html
[crate]: attribute/crate.html
[cfg]: attribute/cfg.md
[crate]: attribute/crate.md
[lint]: https://en.wikipedia.org/wiki/Lint_%28software%29
2 changes: 1 addition & 1 deletion src/attribute/cfg.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ fn main() {
[the reference][ref], [`cfg!`][cfg], and [macros][macros].

[cfg]: https://doc.rust-lang.org/std/macro.cfg!.html
[macros]: macros.html
[macros]: ../macros.md
[ref]: https://doc.rust-lang.org/reference/attributes.html#conditional-compilation
2 changes: 1 addition & 1 deletion src/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ The Rust language is fastly evolving, and because of this certain compatibility
issues can arise, despite efforts to ensure forwards-compatibility wherever
possible.

* [Raw identifiers](compatibility/raw_identifiers.html)
* [Raw identifiers](compatibility/raw_identifiers.md)
2 changes: 1 addition & 1 deletion src/conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ conversions will use the [`From`] and [`Into`] traits. However there are more
specific ones for the more common cases, in particular when converting to and
from `String`s.

[traits]: trait.html
[traits]: trait.md
[`From`]: https://doc.rust-lang.org/std/convert/trait.From.html
[`Into`]: https://doc.rust-lang.org/std/convert/trait.Into.html
2 changes: 1 addition & 1 deletion src/conversion/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ fn main() {

[`ToString`]: https://doc.rust-lang.org/std/string/trait.ToString.html
[Display]: https://doc.rust-lang.org/std/fmt/trait.Display.html
[print]: hello/print.html
[print]: ../hello/print.md
[`parse`]: https://doc.rust-lang.org/std/primitive.str.html#method.parse
[`FromStr`]: https://doc.rust-lang.org/std/str/trait.FromStr.html
2 changes: 1 addition & 1 deletion src/crates/lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Libraries get prefixed with "lib", and by default they get named after their
crate file, but this default name can be overridden using the [`crate_name`
attribute][crate-name].

[crate-name]: attribute/crate.html
[crate-name]: ../attribute/crate.md
4 changes: 2 additions & 2 deletions src/custom_types/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ fn main() {
https://github.com/rust-lang/rfcs/blob/master/text/0246-const-vs-static.md),
[`'static` lifetime][static]

[static]: scope/lifetime/static_lifetime.html
[unsafe]: unsafe.html
[static]: ../scope/lifetime/static_lifetime.md
[unsafe]: ../unsafe.md
6 changes: 3 additions & 3 deletions src/custom_types/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ fn main() {
[`match`][match], [`fn`][fn], and [`String`][str]

[c_struct]: https://en.wikipedia.org/wiki/Struct_(C_programming_language)
[match]: flow_control/match.html
[fn]: fn.html
[str]: std/str.html
[match]: ../flow_control/match.md
[fn]: ../fn.md
[str]: ../std/str.md
2 changes: 1 addition & 1 deletion src/custom_types/enum/c_like.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ fn main() {

[casting][cast]

[cast]: types/cast.html
[cast]: ../../types/cast.md
4 changes: 2 additions & 2 deletions src/custom_types/enum/enum_use.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ fn main() {

[`match`][match] and [`use`][use]

[use]: mod/use.html
[match]: flow_control/match.html
[use]: ../../mod/use.md
[match]: ../../flow_control/match.md
4 changes: 2 additions & 2 deletions src/custom_types/enum/testcase_linked_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ fn main() {

[`Box`][box] and [methods][methods]

[box]: std/box.html
[methods]: fn/methods.html
[box]: ../../std/box.md
[methods]: ../../fn/methods.md
4 changes: 2 additions & 2 deletions src/custom_types/structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ fn main() {

[`attributes`][attributes] and [destructuring][destructuring]

[attributes]: attribute.html
[attributes]: ../attribute.md
[c_struct]: https://en.wikipedia.org/wiki/Struct_(C_programming_language)
[destructuring]: flow_control/match/destructuring.html
[destructuring]: ../flow_control/match/destructuring.md
2 changes: 1 addition & 1 deletion src/error/multiple_error_types/option_result.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ fn main() {
}
```

[enter_question_mark]: error/result/enter_question_mark.html
[enter_question_mark]: ../result/enter_question_mark.md
2 changes: 1 addition & 1 deletion src/error/multiple_error_types/wrap_error.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ for you.
[`From::from`][from] and [`Enums`][enums]

[from]: https://doc.rust-lang.org/std/convert/trait.From.html
[enums]: custom_types/enum.html
[enums]: ../../custom_types/enum.md
2 changes: 1 addition & 1 deletion src/error/option_unwrap/and_then.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ fn main() {

[closures][closures], [`Option`][option], and [`Option::and_then()`][and_then]

[closures]: fn/closures.html
[closures]: ../../fn/closures.md
[option]: https://doc.rust-lang.org/std/option/enum.Option.html
[and_then]: https://doc.rust-lang.org/std/option/enum.Option.html#method.and_then
2 changes: 1 addition & 1 deletion src/error/option_unwrap/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ fn main() {
[closures][closures], [`Option`][option], [`Option::map()`][map]

[combinators]: https://doc.rust-lang.org/book/glossary.html#combinators
[closures]: fn/closures.html
[closures]: ../../fn/closures.md
[option]: https://doc.rust-lang.org/std/option/enum.Option.html
[map]: https://doc.rust-lang.org/std/option/enum.Option.html#method.map
2 changes: 1 addition & 1 deletion src/error/result.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ fn main() -> Result<(), ParseIntError> {
[result]: https://doc.rust-lang.org/std/result/enum.Result.html
[parse]: https://doc.rust-lang.org/std/primitive.str.html#method.parse
[`Debug`]: https://doc.rust-lang.org/std/fmt/trait.Debug.html
[the following section]: error/result/early_returns.html
[the following section]: result/early_returns.md
2 changes: 1 addition & 1 deletion src/error/result/enter_question_mark.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ fn main() {

[^†]: See [re-enter ?][re_enter_?] for more details.

[re_enter_?]: error/multiple_error_types/reenter_question_mark.html
[re_enter_?]: ../multiple_error_types/reenter_question_mark.md
2 changes: 1 addition & 1 deletion src/error/result/result_alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ fn main() {

[`io::Result`][io_result]

[typealias]: types/alias.html
[typealias]: ../../types/alias.md
[io_result]: https://doc.rust-lang.org/std/io/type.Result.html
2 changes: 1 addition & 1 deletion src/flow_control/for.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ implies differing actions that are able to be performed.

[Iterator][iter]

[iter]: trait/iter.html
[iter]: ../trait/iter.md
4 changes: 2 additions & 2 deletions src/flow_control/if_let.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ fn main() {

[`enum`][enum], [`Option`][option], and the [RFC][if_let_rfc]

[enum]: custom_types/enum.html
[enum]: ../custom_types/enum.md
[if_let_rfc]: https://github.com/rust-lang/rfcs/pull/160
[option]: std/option.html
[option]: ../std/option.md
2 changes: 1 addition & 1 deletion src/flow_control/match/binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ fn main() {
### See also:
[functions]

[functions]: fn.html
[functions]: ../../fn.md
8 changes: 4 additions & 4 deletions src/flow_control/match/destructuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A `match` block can destructure items in a variety of ways.
* [Destructuring Tuples][tuple]


[enum]: flow_control/match/destructuring/destructure_enum.html
[refs]: flow_control/match/destructuring/destructure_pointers.html
[struct]: flow_control/match/destructuring/destructure_structures.html
[tuple]: flow_control/match/destructuring/destructure_tuple.html
[enum]: destructuring/destructure_enum.md
[refs]: destructuring/destructure_pointers.md
[struct]: destructuring/destructure_structures.md
[tuple]: destructuring/destructure_tuple.md
4 changes: 2 additions & 2 deletions src/flow_control/match/destructuring/destructure_enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ fn main() {

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

[allow]: attribute/unused.html
[allow]: ../../../attribute/unused.md
[color_models]: https://en.wikipedia.org/wiki/Color_model
[enum]: custom_types/enum.html
[enum]: ../../../custom_types/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ fn main() {

### See also:

[Structs](custom_types/structs.html), [The ref pattern](scope/borrow/ref.html)
[Structs](../../../custom_types/structs.md), [The ref pattern](../../../scope/borrow/ref.md)
2 changes: 1 addition & 1 deletion src/flow_control/match/destructuring/destructure_tuple.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ fn main() {

### See also:

[Tuples](primitives/tuples.html)
[Tuples](../../../primitives/tuples.md)
2 changes: 1 addition & 1 deletion src/flow_control/match/guard.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ fn main() {

### See also:

[Tuples](primitives/tuples.html)
[Tuples](../../primitives/tuples.md)
4 changes: 2 additions & 2 deletions src/flow_control/while_let.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ fn main() {

[`enum`][enum], [`Option`][option], and the [RFC][while_let_rfc]

[enum]: custom_types/enum.html
[option]: std/option.html
[enum]: ../custom_types/enum.md
[option]: ../std/option.md
[while_let_rfc]: https://github.com/rust-lang/rfcs/pull/214
2 changes: 1 addition & 1 deletion src/fn/closures/anonymity.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn main() {
[A thorough analysis][thorough_analysis], [`Fn`][fn], [`FnMut`][fn_mut],
and [`FnOnce`][fn_once]

[generics]: generics.html
[generics]: ../../generics.md
[fn]: https://doc.rust-lang.org/std/ops/trait.Fn.html
[fn_mut]: https://doc.rust-lang.org/std/ops/trait.FnMut.html
[fn_once]: https://doc.rust-lang.org/std/ops/trait.FnOnce.html
Expand Down
2 changes: 1 addition & 1 deletion src/fn/closures/capture.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ fn main() {

[`Box`][box] and [`std::mem::drop`][drop]

[box]: std/box.html
[box]: ../../std/box.md
[drop]: https://doc.rust-lang.org/std/mem/fn.drop.html
4 changes: 2 additions & 2 deletions src/fn/closures/output_parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ fn main() {

[Boxing][box], [`Fn`][fn], [`FnMut`][fnmut], and [Generics][generics].

[box]: std/box.html
[box]: ../../std/box.md
[fn]: https://doc.rust-lang.org/std/ops/trait.Fn.html
[fnmut]: https://doc.rust-lang.org/std/ops/trait.FnMut.html
[fnbox]: https://doc.rust-lang.org/std/boxed/trait.FnBox.html
[generics]: generics.html
[generics]: ../../generics.md
2 changes: 1 addition & 1 deletion src/generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ fn main() {

[`struct`s][structs]

[structs]: custom_types/structs.html
[structs]: custom_types/structs.md
[camelcase]: https://en.wikipedia.org/wiki/CamelCase
4 changes: 2 additions & 2 deletions src/generics/assoc_items/the_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ fn main() {

[`struct`s][structs], and [`trait`s][traits]

[structs]: custom_types/structs.html
[traits]: trait.html
[structs]: ../../custom_types/structs.md
[traits]: ../../trait.md
10 changes: 5 additions & 5 deletions src/generics/bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ some cases to be more expressive.

[`std::fmt`][fmt], [`struct`s][structs], and [`trait`s][traits]

[fmt]: hello/print.html
[methods]: fn/methods.html
[structs]: custom_types/structs.html
[traits]: trait.html
[where]: generics/where.html
[fmt]: ../hello/print.md
[methods]: ../fn/methods.md
[structs]: ../custom_types/structs.md
[traits]: ../trait.md
[where]: ../generics/where.md
2 changes: 1 addition & 1 deletion src/generics/bounds/testcase_empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ fn main() {

[eq]: https://doc.rust-lang.org/std/cmp/trait.Eq.html
[ord]: https://doc.rust-lang.org/std/cmp/trait.Ord.html
[traits]: trait.html
[traits]: ../../trait.md
4 changes: 2 additions & 2 deletions src/generics/gen_fn.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ fn main() {

[functions][fn] and [`struct`s][structs]

[fn]: fn.html
[structs]: custom_types/structs.html
[fn]: ../fn.md
[structs]: ../custom_types/structs.md
4 changes: 2 additions & 2 deletions src/generics/gen_trait.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ fn main() {
[`Drop`][Drop], [`struct`][structs], and [`trait`][traits]

[Drop]: https://doc.rust-lang.org/std/ops/trait.Drop.html
[structs]: custom_types/structs.html
[traits]: trait.html
[structs]: ../custom_types/structs.md
[traits]: ../trait.md
6 changes: 3 additions & 3 deletions src/generics/impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn main() {
[functions returning references][fn], [`impl`][methods], and [`struct`][structs]


[fn]: scope/lifetime/fn.html
[methods]: fn/methods.html
[fn]: ../scope/lifetime/fn.md
[methods]: ../fn/methods.md
[specialization_plans]: https://blog.rust-lang.org/2015/05/11/traits.html#the-future
[structs]: custom_types/structs.html
[structs]: ../custom_types/structs.md
4 changes: 2 additions & 2 deletions src/generics/multi_bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ fn main() {

[`std::fmt`][fmt] and [`trait`s][traits]

[fmt]: hello/print.html
[traits]: trait.html
[fmt]: ../hello/print.md
[traits]: ../trait.md
2 changes: 1 addition & 1 deletion src/generics/new_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ fn main() {

[`structs`][struct]

[struct]: custom_types/structs.html
[struct]: ../custom_types/structs.md

6 changes: 3 additions & 3 deletions src/generics/phantom.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn main() {

[Derive], [struct], and [TupleStructs]

[Derive]: trait/derive.html
[struct]: custom_types/structs.html
[TupleStructs]: custom_types/structs.html
[Derive]: ../trait/derive.md
[struct]: ../custom_types/structs.md
[TupleStructs]: ../custom_types/structs.md
[std::marker::PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html
16 changes: 8 additions & 8 deletions src/generics/phantom/testcase_units.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ fn main() {
[Borrowing (`&`)], [Bounds (`X: Y`)], [enum], [impl & self],
[Overloading], [ref], [Traits (`X for Y`)], and [TupleStructs].

[Borrowing (`&`)]: scope/borrow.html
[Bounds (`X: Y`)]: generics/bounds.html
[enum]: custom_types/enum.html
[impl & self]: fn/methods.html
[Overloading]: trait/ops.html
[ref]: scope/borrow/ref.html
[Traits (`X for Y`)]: trait.html
[TupleStructs]: custom_types/structs.html
[Borrowing (`&`)]: ../../scope/borrow.md
[Bounds (`X: Y`)]: ../../generics/bounds.md
[enum]: ../../custom_types/enum.md
[impl & self]: ../../fn/methods.md
[Overloading]: ../../trait/ops.md
[ref]: ../../scope/borrow/ref.md
[Traits (`X for Y`)]: ../../trait.md
[TupleStructs]: ../../custom_types/structs.md
[std::marker::PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html
4 changes: 2 additions & 2 deletions src/generics/where.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ fn main() {

[RFC][where], [`struct`][struct], and [`trait`][trait]

[struct]: custom_types/structs.html
[trait]: trait.html
[struct]: ../custom_types/structs.md
[trait]: ../trait.md
[where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
2 changes: 1 addition & 1 deletion src/hello.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ Hello World!
I'm a Rustacean!
```

[macros]: macros.html
[macros]: macros.md
2 changes: 1 addition & 1 deletion src/hello/comment.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ fn main() {

[Library documentation][docs]

[docs]: meta/doc.html
[docs]: ../meta/doc.md
10 changes: 5 additions & 5 deletions src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ Implementing the `fmt::Display` trait automagically implements the
and [`traits`][traits]

[fmt]: https://doc.rust-lang.org/std/fmt/
[macros]: macros.html
[string]: std/str.html
[structs]: custom_types/structs.html
[traits]: trait.html
[macros]: ../macros.md
[string]: ../std/str.md
[structs]: ../custom_types/structs.md
[traits]: ../trait.md
[`ToString`]: https://doc.rust-lang.org/std/string/trait.ToString.html
[convert]: conversion/string.html
[convert]: ../conversion/string.md
4 changes: 2 additions & 2 deletions src/hello/print/print_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ One can manually implement `fmt::Display` to control the display.
and [`struct`][structs]

[attributes]: https://doc.rust-lang.org/reference/attributes.html
[derive]: trait/derive.html
[derive]: ../../trait/derive.md
[fmt]: https://doc.rust-lang.org/std/fmt/
[structs]: custom_types/structs.html
[structs]: ../../custom_types/structs.md

Loading