Skip to content

Commit 5eac9c2

Browse files
committed
Fix links for book editions.
Now that there is one book to rule them all, some of the links needed updating. The prose needed significant adjustment to accommodate the most recent changes. I did my best to capture what is going on, but I am not confident it is correct.
1 parent aa0022c commit 5eac9c2

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

src/rust-2018/documentation/new-editions-of-the-book.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
![Minimum Rust version: 1.28](https://img.shields.io/badge/Minimum%20Rust%20Version-1.28-red.svg) for drafts of the 2018 edition
88

9+
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg) for the 2018 edition
10+
911
We've distributed a copy of "The Rust Programming Language," affectionately
1012
nicknamed "the book", with every version of Rust since Rust 1.0.
1113

@@ -15,23 +17,19 @@ details were nailed down for the 1.0 release. It didn't do a fantastic job of
1517
teaching lifetimes.
1618

1719
Starting with Rust 1.18, we shipped drafts of a second edition of the book.
18-
The final version was shipped with Rust 1.26. The new edition is a complete
20+
The final version was shipped with Rust 1.26. The second edition is a complete
1921
re-write from the ground up, using the last two years of knowledge we’ve
20-
gained from teaching people Rust. You’ll find brand-new explanations for a
21-
lot of Rust’s core concepts, new projects to build, and all kinds of other
22-
good stuff. Please [check it
23-
out](https://doc.rust-lang.org/book/second-edition/index.html) and let us
22+
gained from teaching people Rust.
23+
24+
You can purchase [a dead-tree version of the second edition from No Starch
25+
Press](https://nostarch.com/Rust). Now that the print version has shipped, the
26+
second edition is frozen.
27+
28+
As of 1.31, the book has been completely updated for the 2018 Edition release.
29+
It's still pretty close to the second edition, but contains information about
30+
newer features since the book's content was frozen. Additionally, instead of
31+
publishing separate editions of the book, only the latest version of the book
32+
is published online. You’ll find brand-new explanations for a lot of Rust’s
33+
core concepts, new projects to build, and all kinds of other good stuff.
34+
Please [check it out](https://doc.rust-lang.org/book/index.html) and let us
2435
know what you think!
25-
26-
You can also purchase [a dead-tree version from No Starch
27-
Press](https://nostarch.com/Rust). Now that the print version has shipped,
28-
the second edition is frozen.
29-
30-
The names are a bit confusing though, because the "second edition" of the
31-
book is the first printed edition of the book. As such, we decided that newer
32-
editions of the book will correspond with newer editions of Rust itself, and
33-
so starting with 1.28, we've been shipping drafts of the next version, [the
34-
2018 Edition](https://doc.rust-lang.org/book/2018-edition/index.html). It's
35-
still pretty close to the second edition, but contains information about
36-
newer features since the book's content was frozen. We'll be continuing to
37-
update this edition until we decide to print a second edition in paper.

src/rust-2018/trait-system/more-container-types-support-trait-objects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Minimum Rust version: 1.2](https://img.shields.io/badge/Minimum%20Rust%20Version-1.2-brightgreen.svg)
44

55
In Rust 1.0, only certain, special types could be used to create [trait
6-
objects](https://doc.rust-lang.org/book/second-edition/ch17-02-trait-objects.html).
6+
objects](https://doc.rust-lang.org/book/ch17-02-trait-objects.html).
77

88
With Rust 1.2, that restriction was lifted, and more types became able to do this. For example,
99
`Rc<T>`, one of Rust's reference-counted types:
@@ -14,7 +14,7 @@ use std::rc::Rc;
1414
trait Foo {}
1515

1616
impl Foo for i32 {
17-
17+
1818
}
1919

2020
fn main() {
@@ -25,4 +25,4 @@ fn main() {
2525
This code would not work with Rust 1.0, but now works.
2626

2727
> If you haven't seen the `dyn` syntax before, see the section on it. For
28-
> versions that do not support it, replace `Rc<dyn Foo>` with `Rc<Foo>`.
28+
> versions that do not support it, replace `Rc<dyn Foo>` with `Rc<Foo>`.

0 commit comments

Comments
 (0)