Skip to content

Commit 5fb0d44

Browse files
authored
Merge pull request #149 from ehuss/fix-book-links
Fix links for book editions.
2 parents d3c9c94 + 25ea3e8 commit 5fb0d44

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# New editions of the "the book"
22

3-
![Minimum Rust version: 1.18](https://img.shields.io/badge/Minimum%20Rust%20Version-1.18-red.svg) for drafts of the second edition
4-
53
![Minimum Rust version: 1.26](https://img.shields.io/badge/Minimum%20Rust%20Version-1.26-brightgreen.svg) for the final version of the second edition
64

7-
![Minimum Rust version: 1.28](https://img.shields.io/badge/Minimum%20Rust%20Version-1.28-red.svg) for drafts of the 2018 edition
5+
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg) for the 2018 edition
86

97
We've distributed a copy of "The Rust Programming Language," affectionately
108
nicknamed "the book", with every version of Rust since Rust 1.0.
@@ -15,23 +13,19 @@ details were nailed down for the 1.0 release. It didn't do a fantastic job of
1513
teaching lifetimes.
1614

1715
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
16+
The final version was shipped with Rust 1.26. The second edition is a complete
1917
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
18+
gained from teaching people Rust.
19+
20+
You can purchase [a printed version of the second edition from No Starch
21+
Press](https://nostarch.com/Rust). Now that the print version has shipped, the
22+
second edition is frozen.
23+
24+
As of 1.31, the book has been completely updated for the 2018 Edition release.
25+
It's still pretty close to the second edition, but contains information about
26+
newer features since the book's content was frozen. Additionally, instead of
27+
publishing separate editions of the book, only the latest version of the book
28+
is published online. You’ll find brand-new explanations for a lot of Rust’s
29+
core concepts, new projects to build, and all kinds of other good stuff.
30+
Please [check it out](https://doc.rust-lang.org/book/index.html) and let us
2431
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)