Update links in redirects

This commit is contained in:
Matt Brubeck 2018-12-07 06:56:43 -08:00
parent db53e2e3cd
commit 6a48927b15
41 changed files with 129 additions and 131 deletions

View File

@ -20,5 +20,5 @@ Here are the relevant sections in the new and old books:
* <small>[In the first edition: Ch 3.27 — Attributes][1]</small>
[1]: first-edition/attributes.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/attributes.html
[2]: ../reference/attributes.html

View File

@ -9,6 +9,6 @@ You might be interested in a similar page in [the Rust Reference][3].
* <small>[In the first edition: Section 7 — Bibliography][1]</small>
[1]: first-edition/bibliography.html
[2]: second-edition/index.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/bibliography.html
[2]: index.html
[3]: ../reference/influences.html

View File

@ -20,6 +20,6 @@ The best place to learn more about this is [the Rust documentation][3].
* <small>[In the first edition: Ch 4.10 — Borrow and AsRef][1]</small>
[1]: first-edition/borrow-and-asref.html
[2]: second-edition/index.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/borrow-and-asref.html
[2]: index.html
[3]: ../std/convert/trait.AsRef.html

View File

@ -20,13 +20,13 @@ fn average(values: &[f64]) -> f64 {
Here are the relevant sections in the new and old books:
* **[In the second edition: Appendix A — Keywords][2]**
* **[in the current edition: Appendix A — Keywords][2]**
* [In the Rust Reference: Type Cast Expressions][3]
* [In the Rust documentation: `mem::transmute`][4]
* <small>[In the first edition: Ch 3.29 — Casting between types][1]</small>
[1]: first-edition/casting-between-types.html
[2]: second-edition/appendix-01-keywords.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/casting-between-types.html
[2]: appendix-01-keywords.html
[3]: ../reference/expressions/operator-expr.html#type-cast-expressions
[4]: ../std/mem/fn.transmute.html

View File

@ -14,9 +14,9 @@ println!("b = {}", b);
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 15.00 — Smart Pointers][2]**
* **[In the current edition: Ch 15.00 — Smart Pointers][2]**
* <small>[In the first edition: Ch 4.8 — Choosing your Guarantees][1]</small>
[1]: first-edition/choosing-your-guarantees.html
[2]: second-edition/ch15-00-smart-pointers.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/choosing-your-guarantees.html
[2]: ch15-00-smart-pointers.html

View File

@ -20,9 +20,9 @@ let expensive_closure = |num| {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 13.01 — Closures][2]**
* **[in the current edition: Ch 13.01 — Closures][2]**
* <small>[In the first edition: Ch 3.23 — Closures][1]</small>
[1]: first-edition/closures.html
[2]: second-edition/ch13-01-closures.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/closures.html
[2]: ch13-01-closures.html

View File

@ -15,9 +15,9 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 3.04 — Comments][2]**
* **[in the current edition: Ch 3.04 — Comments][2]**
* <small>[In the first edition: Ch 3.4 — Comments][1]</small>
[1]: first-edition/comments.html
[2]: second-edition/ch03-04-comments.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/comments.html
[2]: ch03-04-comments.html

View File

@ -9,9 +9,9 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 16.00 — Fearless Concurrency][2]**
* **[in the current edition: Ch 16.00 — Fearless Concurrency][2]**
* <small>[In the first edition: Ch 4.6 — Concurrency][1]</small>
[1]: first-edition/concurrency.html
[2]: second-edition/ch16-00-concurrency.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/concurrency.html
[2]: ch16-00-concurrency.html

View File

@ -23,6 +23,6 @@ The best place to learn about it is [the Rust Reference][3].
* <small>[In the first edition: Ch 4.3 — Conditional Compilation][1]</small>
[1]: first-edition/conditional-compilation.html
[2]: second-edition/index.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/conditional-compilation.html
[2]: index.html
[3]: ../reference/attributes.html#conditional-compilation

View File

@ -18,11 +18,11 @@ mod network {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 7.01 — `mod` and the Filesystem][2]**
* [In the second edition: Ch 14.02 — Publishing a Crate to Crates.io][3]
* **[in the current edition: Ch 7.01 — `mod` and the Filesystem][2]**
* [in the current edition: Ch 14.02 — Publishing a Crate to Crates.io][3]
* <small>[In the first edition: Ch 3.25 — Crates and Modules][1]</small>
[1]: first-edition/crates-and-modules.html
[2]: second-edition/ch07-01-mod-and-the-filesystem.html
[3]: second-edition/ch14-02-publishing-to-crates-io.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/crates-and-modules.html
[2]: ch07-00-packages-crates-and-modules.html
[3]: ch14-02-publishing-to-crates-io.html

View File

@ -22,9 +22,9 @@ impl<T> Deref for MyBox<T> {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 15.02 — Treating Smart Pointers like Regular References with the `Deref` Trait][2]**
* **[in the current edition: Ch 15.02 — Treating Smart Pointers like Regular References with the `Deref` Trait][2]**
* <small>[In the first edition: Ch 3.33 — Deref coercions][1]</small>
[1]: first-edition/deref-coercions.html
[2]: second-edition/ch15-02-deref.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/deref-coercions.html
[2]: ch15-02-deref.html

View File

@ -26,9 +26,9 @@ fn main() {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 15.03 — The `Drop` Trait Runs Code on Cleanup][2]**
* **[in the current edition: Ch 15.03 — The `Drop` Trait Runs Code on Cleanup][2]**
* <small>[In the first edition: Ch 3.20 — Drop][1]</small>
[1]: first-edition/drop.html
[2]: second-edition/ch15-03-drop.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/drop.html
[2]: ch15-03-drop.html

View File

@ -10,5 +10,5 @@ It is recommended to start there.
* <small>[In the first edition: Ch 4 — Effective Rust][1]</small>
[1]: first-edition/effective-rust.html
[2]: second-edition/index.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/effective-rust.html
[2]: index.html

View File

@ -15,9 +15,9 @@ enum IpAddrKind {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 6.01 — Defining an Enum][2]**
* **[in the current edition: Ch 6.01 — Defining an Enum][2]**
* <small>[In the first edition: Ch 3.13 — Enums][1]</small>
[1]: first-edition/enums.html
[2]: second-edition/ch06-01-defining-an-enum.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/enums.html
[2]: ch06-01-defining-an-enum.html

View File

@ -8,9 +8,9 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 9.00 — Error Handling][2]**
* **[in the current edition: Ch 9.00 — Error Handling][2]**
* <small>[In the first edition: Ch 4.7 — Error Handling][1]</small>
[1]: first-edition/error-handling.html
[2]: second-edition/ch09-00-error-handling.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/error-handling.html
[2]: ch09-00-error-handling.html

View File

@ -23,8 +23,8 @@ fn another_function() {
Here are the relevant sections in the new and old books:
* **[In the first edition: Ch 3.2 — Functions][1]**
* <small>[In the second edition: Ch 3.03 — Functions][2]</small>
* <small>[in the current edition: Ch 3.03 — Functions][2]</small>
[1]: first-edition/functions.html
[2]: second-edition/ch03-03-how-functions-work.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/functions.html
[2]: ch03-03-how-functions-work.html

View File

@ -21,10 +21,10 @@ fn main() {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 10.00 — Generic Types, Traits, and Lifetimes][2]**
* **[in the current edition: Ch 10.00 — Generic Types, Traits, and Lifetimes][2]**
* <small>[In the first edition: Ch 3.18 — Generics][1]</small>
[1]: first-edition/generics.html
[2]: second-edition/ch10-00-generics.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/generics.html
[2]: ch10-00-generics.html

View File

@ -5,9 +5,9 @@
You can [continue to the exact older page][1].
If you're trying to learn Rust, checking out [the second edition][2] might be a better choice.
* **[In the second edition: Getting Started][2]**
* **[in the current edition: Getting Started][2]**
* <small>[In the first edition: Getting Started][1]</small>
[1]: first-edition/getting-started.html
[2]: second-edition/ch01-00-getting-started.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/getting-started.html
[2]: ch01-00-getting-started.html

View File

@ -10,5 +10,5 @@ It is recommended to start there.
* <small>[In the first edition: Glossary][1]</small>
[1]: first-edition/glossary.html
[2]: second-edition/index.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/glossary.html
[2]: index.html

View File

@ -5,8 +5,8 @@
If you're trying to learn Rust, checking out [the second edition][2] might be a better choice.
* **[In the first edition: Tutorial — Guessing Game][1]**
* <small>[In the second edition: Ch 2.00 — Guessing Game tutorial][2]</small>
* <small>[in the current edition: Ch 2.00 — Guessing Game tutorial][2]</small>
[1]: first-edition/guessing-game.html
[2]: second-edition/ch02-00-guessing-game-tutorial.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/guessing-game.html
[2]: ch02-00-guessing-game-tutorial.html

View File

@ -15,9 +15,8 @@ if let Some(3) = some_u8_value {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 6.03 — Concise Control Flow with `if let`][2]**
* [In the current edition: Ch 6.03 — Concise Control Flow with `if let`][2]
* <small>[In the first edition: Ch 3.21 — if let][1]</small>
[1]: first-edition/if-let.html
[2]: second-edition/ch06-03-if-let.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/if-let.html
[2]: ch06-03-if-let.html

View File

@ -19,9 +19,9 @@ for val in v1_iter {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 13.02 — Iterators][2]**
* **[in the current edition: Ch 13.02 — Iterators][2]**
* <small>[In the first edition: Ch 4.5 — Iterators][1]</small>
[1]: first-edition/iterators.html
[2]: second-edition/ch13-02-iterators.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/iterators.html
[2]: ch13-02-iterators.html

View File

@ -20,11 +20,11 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 10.03 — Lifetimes][2]**
* [In the second edition: Ch 19.02 — Advanced Lifetimes][3]
* **[in the current edition: Ch 10.03 — Lifetimes][2]**
* [in the current edition: Ch 19.02 — Advanced Lifetimes][3]
* <small>[In the first edition: Ch 3.10 — Lifetimes][1]</small>
[1]: first-edition/lifetimes.html
[2]: second-edition/ch10-03-lifetime-syntax.html
[3]: second-edition/ch19-02-advanced-lifetimes.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/lifetimes.html
[2]: ch10-03-lifetime-syntax.html
[3]: ch19-02-advanced-lifetimes.html

View File

@ -18,13 +18,13 @@ fn main() {
Here are the relevant sections in the new and old books:
* **[In the second edition: Appendix D — Macros][2]**
* **[In the current edition: Ch 19.06 Macros][2]**
* [Rust By Example: Macros][3]
* [In the Rust Reference: Ch 3.1 — Macros by Example][4]
* <small>[In the first edition: Ch 3.34 — Macros][1]</small>
[1]: first-edition/macros.html
[2]: second-edition/appendix-04-macros.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/macros.html
[2]: ch19-06-macros.html
[3]: https://rustbyexample.com/macros.html
[4]: ../reference/macros-by-example.html

View File

@ -27,12 +27,12 @@ fn value_in_cents(coin: Coin) -> u32 {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 6.02 — The `match` Control Flow Operator][2]**
* [In the second edition: Ch 18.00 — Patterns][3]
* **[in the current edition: Ch 6.02 — The `match` Control Flow Operator][2]**
* [in the current edition: Ch 18.00 — Patterns][3]
* <small>[In the first edition: Ch 3.14 — Match][1]</small>
[1]: first-edition/match.html
[2]: second-edition/ch06-02-match.html
[3]: second-edition/ch18-00-patterns.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/match.html
[2]: ch06-02-match.html
[3]: ch18-00-patterns.html

View File

@ -21,9 +21,9 @@ impl Rectangle {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 5.03 — Method Syntax][2]**
* **[in the current edition: Ch 5.03 — Method Syntax][2]**
* <small>[In the first edition: Ch 3.16 — Method Syntax][1]</small>
[1]: first-edition/method-syntax.html
[2]: second-edition/ch05-03-method-syntax.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/method-syntax.html
[2]: ch05-03-method-syntax.html

View File

@ -15,9 +15,9 @@ println!("The value of x is: {}", x);
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 3.01 — Variables and Mutability][2]**
* **[in the current edition: Ch 3.01 — Variables and Mutability][2]**
* <small>[In the first edition: Ch 3.11 — Mutability][1]</small>
[1]: first-edition/mutability.html
[2]: second-edition/ch03-01-variables-and-mutability.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/mutability.html
[2]: ch03-01-variables-and-mutability.html

View File

@ -12,9 +12,9 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 4.00 — Understanding Ownership][2]**
* **[in the current edition: Ch 4.00 — Understanding Ownership][2]**
* <small>[In the first edition: Ch 3.8 — Ownership][1]</small>
[1]: first-edition/ownership.html
[2]: second-edition/ch04-00-understanding-ownership.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/ownership.html
[2]: ch04-00-understanding-ownership.html

View File

@ -16,9 +16,9 @@ let y: f32 = 3.0; // f32
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 3.02 — Data Types][2]**
* **[in the current edition: Ch 3.02 — Data Types][2]**
* <small>[In the first edition: Ch 3.3 — Primitive Types][1]</small>
[1]: first-edition/primitive-types.html
[2]: second-edition/ch03-02-data-types.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/primitive-types.html
[2]: ch03-02-data-types.html

View File

@ -9,13 +9,13 @@
This chapter does not exist yet in [the second edition][2].
You can check out other resources that describe macros.
* **[In the Rust Reference: Ch 3.2 — Procedural Macros][4]**
* **[In the current edition: Ch 19.06 Macros][2]**
* [In the Rust Reference: Ch 3.2 — Procedural Macros][4]
* [The `proc_macro` crate documentation][3]
* [In the second edition: (future) Appendix D — Macros][2]
* <small>[In the first edition: Ch 4.13 — Procedural Macros (and custom Derive)][1]</small>
[1]: first-edition/procedural-macros.html
[2]: second-edition/appendix-04-macros.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/procedural-macros.html
[2]: ch19-06-macros.html
[3]: ../proc_macro/index.html
[4]: ../reference/procedural-macros.html
[4]: ../reference/procedural-macros.html

View File

@ -16,9 +16,9 @@ fn calculate_length(s: &String) -> usize { // s is a reference to a String
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 4.02 — References and Borrowing][2]**
* **[in the current edition: Ch 4.02 — References and Borrowing][2]**
* <small>[In the first edition: Ch 3.9 — References and Borrowing][1]</small>
[1]: first-edition/references-and-borrowing.html
[2]: second-edition/ch04-02-references-and-borrowing.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/references-and-borrowing.html
[2]: ch04-02-references-and-borrowing.html

View File

@ -16,12 +16,12 @@ You can check out other resources that describe release channels.
* **[In the Rustup documentation: Keeping Rust Up-to-date][4]**
* [On the website: Install Rust][5]
* [In the Rust RFCs: RFC 507 — Release Channels][3]
* [In the second edition: How Rust is Made and “Nightly Rust”][2]
* [in the current edition: How Rust is Made and “Nightly Rust”][2]
* <small>[In the first edition: Ch 4.11 — Release Channels][1]</small>
[1]: first-edition/release-channels.html
[2]: second-edition/appendix-07-nightly-rust.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/release-channels.html
[2]: appendix-07-nightly-rust.html
[3]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
[4]: https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md#keeping-rust-up-to-date
[5]: https://www.rust-lang.org/en-US/install.html

View File

@ -21,5 +21,5 @@ Here are the relevant sections in the new and old books:
* <small>[In the first edition: Ch 3.12 — Structs][1]</small>
[1]: first-edition/structs.html
[2]: second-edition/ch05-00-structs.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/structs.html
[2]: ch05-00-structs.html

View File

@ -5,14 +5,14 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 3.00 — Common Programming Concepts][2]**
* [In the second edition: Appendix A — Keywords][3]
* [In the second edition: Appendix B — Operators][4]
* **[in the current edition: Ch 3.00 — Common Programming Concepts][2]**
* [in the current edition: Appendix A — Keywords][3]
* [in the current edition: Appendix B — Operators][4]
* <small>[In the first edition: Ch 3 — Syntax and Semantics][1]</small>
[1]: first-edition/syntax-and-semantics.html
[2]: second-edition/ch03-00-common-programming-concepts.html
[3]: second-edition/appendix-01-keywords.html
[4]: second-edition/appendix-02-operators.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/syntax-and-semantics.html
[2]: ch03-00-common-programming-concepts.html
[3]: appendix-01-keywords.html
[4]: appendix-02-operators.html

View File

@ -4,11 +4,10 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Appendix A — Keywords][2]**
* **[In the second edition: Appendix B — Operators][3]**
* **[In the current edition: Appendix A — Keywords][2]**
* **[In the current edition: Appendix B — Operators][3]**
* <small>[In the first edition: Ch 6 — Syntax Index][1]</small>
[1]: first-edition/syntax-index.html
[2]: second-edition/appendix-01-keywords.html
[3]: second-edition/appendix-02-operators.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/syntax-index.html
[2]: appendix-01-keywords.html
[3]: appendix-02-operators.html

View File

@ -17,9 +17,9 @@ mod tests {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 11.00 — Testing][2]**
* **[in the current edition: Ch 11.00 — Testing][2]**
* <small>[In the first edition: Ch 4.2 — Testing][1]</small>
[1]: first-edition/testing.html
[2]: second-edition/ch11-00-testing.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/testing.html
[2]: ch11-00-testing.html

View File

@ -60,9 +60,9 @@ fn main() {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 17.02 — Trait Objects][2]**
* **[in the current edition: Ch 17.02 — Trait Objects][2]**
* <small>[In the first edition: Ch 3.22 — Trait Objects][1]</small>
[1]: first-edition/trait-objects.html
[2]: second-edition/ch17-02-trait-objects.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/trait-objects.html
[2]: ch17-02-trait-objects.html

View File

@ -14,11 +14,11 @@ pub trait Summarizable {
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 10.02 — Traits][2]**
* [In the second edition: Ch 19.03 — Advanced Traits][3]
* **[in the current edition: Ch 10.02 — Traits][2]**
* [in the current edition: Ch 19.03 — Advanced Traits][3]
* <small>[In the first edition: Ch 3.19 — Traits][1]</small>
[1]: first-edition/traits.html
[2]: second-edition/ch10-02-traits.html
[3]: second-edition/ch19-03-advanced-traits.html
[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

View File

@ -8,11 +8,11 @@
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 19.01 — Unsafe Rust][2]**
* **[in the current edition: Ch 19.01 — Unsafe Rust][2]**
* [The Rustonomicon, The Dark Arts of Advanced and Unsafe Rust Programming][3]
* <small>[In the first edition: Ch 3.36 — `unsafe`][1]</small>
[1]: first-edition/unsafe.html
[2]: second-edition/ch19-01-unsafe-rust.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/unsafe.html
[2]: ch19-01-unsafe-rust.html
[3]: ../nomicon/index.html

View File

@ -13,5 +13,5 @@ This particular chapter has moved to [the Unstable Book][2].
* <small>[In the first edition: Ch 4.12 — Using Rust without the Standard Library][1]</small>
[1]: first-edition/using-rust-without-the-standard-library.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/using-rust-without-the-standard-library.html
[2]: ../unstable-book/language-features/lang-items.html#writing-an-executable-without-stdlib

View File

@ -14,10 +14,10 @@ let numbers = vec![1, 2, 3];
Here are the relevant sections in the new and old books:
* **[In the second edition: Ch 8.01 — Vectors][2]**
* **[in the current edition: Ch 8.01 — Vectors][2]**
* <small>[In the first edition: Ch 3.7 — Vectors][1]</small>
[1]: first-edition/vectors.html
[2]: second-edition/ch08-01-vectors.html
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/vectors.html
[2]: ch08-01-vectors.html