Skip to content
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

Rename files to follow correct order #3775

Closed
wants to merge 4 commits into from
Closed
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 2018-edition/src/ch19-03-advanced-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-03-advanced-traits.html) instead.
version of the book](../ch19-02-advanced-traits.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-03-advanced-traits.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-02-advanced-traits.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-04-advanced-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-04-advanced-types.html) instead.
version of the book](../ch19-03-advanced-types.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-04-advanced-types.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-03-advanced-types.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-06-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-06-macros.html) instead.
version of the book](../ch19-05-macros.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-06-macros.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-05-macros.html).
2 changes: 1 addition & 1 deletion first-edition/src/associated-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The first edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-03-advanced-traits.html#specifying-placeholder-types-in-trait-definitions-with-associated-types) instead.
version of the book](../ch19-02-advanced-traits.html#specifying-placeholder-types-in-trait-definitions-with-associated-types) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
Expand Down
2 changes: 1 addition & 1 deletion first-edition/src/operators-and-overloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The first edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-03-advanced-traits.html#default-generic-type-parameters-and-operator-overloading) instead.
version of the book](../ch19-02-advanced-traits.html#default-generic-type-parameters-and-operator-overloading) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
Expand Down
2 changes: 1 addition & 1 deletion first-edition/src/procedural-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The first edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-06-macros.html?highlight=procedural#procedural-macros-for-generating-code-from-attributes) instead.
version of the book](../ch19-05-macros.html?highlight=procedural#procedural-macros-for-generating-code-from-attributes) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
Expand Down
2 changes: 1 addition & 1 deletion first-edition/src/type-aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The first edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-04-advanced-types.html#creating-type-synonyms-with-type-aliases) instead.
version of the book](../ch19-03-advanced-types.html#creating-type-synonyms-with-type-aliases) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
Expand Down
2 changes: 1 addition & 1 deletion first-edition/src/unsized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The first edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait) instead.
version of the book](../ch19-03-advanced-types.html#dynamically-sized-types-and-the-sized-trait) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
Expand Down
2 changes: 1 addition & 1 deletion redirects/associated-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pub trait Iterator {
---

You can find the latest version of this information
[here](ch19-03-advanced-traits.html#specifying-placeholder-types-in-trait-definitions-with-associated-types).
[here](ch19-02-advanced-traits.html#specifying-placeholder-types-in-trait-definitions-with-associated-types).
2 changes: 1 addition & 1 deletion redirects/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Here are the relevant sections in the new and old books:


[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/macros.html
[2]: ch19-06-macros.html
[2]: ch19-05-macros.html
[3]: https://rustbyexample.com/macros.html
[4]: ../reference/macros-by-example.html
2 changes: 1 addition & 1 deletion redirects/operators-and-overloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ fn main() {
---

You can find the latest version of this information
[here](ch19-03-advanced-traits.html).
[here](ch19-02-advanced-traits.html).
2 changes: 1 addition & 1 deletion redirects/procedural-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ You can check out other resources that describe macros.


[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/procedural-macros.html
[2]: ch19-06-macros.html
[2]: ch19-05-macros.html
[3]: ../proc_macro/index.html
[4]: ../reference/procedural-macros.html
2 changes: 1 addition & 1 deletion redirects/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Here are the relevant sections in the new and old books:

[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/traits.html
[2]: ch10-02-traits.html
[3]: ch19-03-advanced-traits.html
[3]: ch19-02-advanced-traits.html
2 changes: 1 addition & 1 deletion redirects/type-aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ type Kilometers = i32;
---

You can find the latest version of this information
[here](ch19-04-advanced-types.html#creating-type-synonyms-with-type-aliases).
[here](ch19-03-advanced-types.html#creating-type-synonyms-with-type-aliases).
2 changes: 1 addition & 1 deletion redirects/ufcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ fn main() {
---

You can find the latest version of this information
[here](ch19-03-advanced-traits.html#fully-qualified-syntax-for-disambiguation-calling-methods-with-the-same-name).
[here](ch19-02-advanced-traits.html#fully-qualified-syntax-for-disambiguation-calling-methods-with-the-same-name).
2 changes: 1 addition & 1 deletion redirects/unsized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ fn generic<T: ?Sized>(t: &T) {
---

You can find the latest version of this information
[here](ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait).
[here](ch19-03-advanced-types.html#dynamically-sized-types-and-the-sized-trait).
2 changes: 1 addition & 1 deletion second-edition/src/appendix-04-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The second edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-06-macros.html) instead.
version of the book](../ch19-05-macros.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
Expand Down
4 changes: 2 additions & 2 deletions second-edition/src/ch19-03-advanced-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The second edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-03-advanced-traits.html) instead.
version of the book](../ch19-02-advanced-traits.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/second-edition/ch19-03-advanced-traits.html).
1.30](https://doc.rust-lang.org/1.30.0/book/second-edition/ch19-02-advanced-traits.html).
4 changes: 2 additions & 2 deletions second-edition/src/ch19-04-advanced-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The second edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-04-advanced-types.html) instead.
version of the book](../ch19-03-advanced-types.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/second-edition/ch19-04-advanced-types.html).
1.30](https://doc.rust-lang.org/1.30.0/book/second-edition/ch19-03-advanced-types.html).
8 changes: 4 additions & 4 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@

- [Advanced Features](ch19-00-advanced-features.md)
- [Unsafe Rust](ch19-01-unsafe-rust.md)
- [Advanced Traits](ch19-03-advanced-traits.md)
- [Advanced Types](ch19-04-advanced-types.md)
- [Advanced Functions and Closures](ch19-05-advanced-functions-and-closures.md)
- [Macros](ch19-06-macros.md)
- [Advanced Traits](ch19-02-advanced-traits.md)
- [Advanced Types](ch19-03-advanced-types.md)
- [Advanced Functions and Closures](ch19-04-advanced-functions-and-closures.md)
- [Macros](ch19-05-macros.md)

- [Final Project: Building a Multithreaded Web Server](ch20-00-final-project-a-web-server.md)
- [Building a Single-Threaded Web Server](ch20-01-single-threaded.md)
Expand Down
2 changes: 1 addition & 1 deletion src/appendix-03-derivable-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struc
ch04-01-what-is-ownership.html#stack-only-data-copy
[ways-variables-and-data-interact-clone]:
ch04-01-what-is-ownership.html#ways-variables-and-data-interact-clone
[macros]: ch19-06-macros.html#macros
[macros]: ch19-05-macros.html#macros
2 changes: 1 addition & 1 deletion src/ch17-02-trait-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@ support in Listing 17-9, so it’s a trade-off to consider.

[performance-of-code-using-generics]:
ch10-01-syntax.html#performance-of-code-using-generics
[dynamically-sized]: ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait
[dynamically-sized]: ch19-03-advanced-types.html#dynamically-sized-types-and-the-sized-trait
2 changes: 1 addition & 1 deletion src/ch17-03-oo-design-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,4 +513,4 @@ lots of flexibility. We’ve looked at them briefly throughout the book but
haven’t seen their full capability yet. Let’s go!

[more-info-than-rustc]: ch09-03-to-panic-or-not-to-panic.html#cases-in-which-you-have-more-information-than-the-compiler
[macros]: ch19-06-macros.html#macros
[macros]: ch19-05-macros.html#macros
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ behavior—we would have to implement just the methods we do want manually.
This newtype pattern is also useful even when traits are not involved. Let’s
switch focus and look at some advanced ways to interact with Rust’s type system.

[newtype]: ch19-03-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types
[newtype]: ch19-02-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types
[implementing-a-trait-on-a-type]:
ch10-02-traits.html#implementing-a-trait-on-a-type
[traits-defining-shared-behavior]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,4 @@ ch17-01-what-is-oo.html#encapsulation-that-hides-implementation-details
ch06-02-match.html#the-match-control-flow-operator
[using-trait-objects-that-allow-for-values-of-different-types]:
ch17-02-trait-objects.html#using-trait-objects-that-allow-for-values-of-different-types
[using-the-newtype-pattern]: ch19-03-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types
[using-the-newtype-pattern]: ch19-02-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ ignore --> in Chapter 17.
Next, let’s look at macros!

[advanced-traits]:
ch19-03-advanced-traits.html#advanced-traits
ch19-02-advanced-traits.html#advanced-traits
[enum-values]: ch06-01-defining-an-enum.html#enum-values
[using-trait-objects-that-allow-for-values-of-different-types]:
ch17-02-trait-objects.html#using-trait-objects-that-allow-for-values-of-different-types
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ch20-02-multithreaded.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ the associated block. In Listing 20-21, the lock remains held for the duration
of the call to `job()`, meaning other workers cannot receive jobs.

[creating-type-synonyms-with-type-aliases]:
ch19-04-advanced-types.html#creating-type-synonyms-with-type-aliases
ch19-03-advanced-types.html#creating-type-synonyms-with-type-aliases
[integer-types]: ch03-02-data-types.html#integer-types
[fn-traits]:
ch13-01-closures.html#moving-captured-values-out-of-the-closure-and-the-fn-traits
Expand Down