Skip to content

Commit c6de272

Browse files
ZapAntonpetertseng
authored andcommitted
track: Replace existing links to the Second Edition of TRPL with links to the 2018 Edition (#627)
Closes #623
1 parent 0656618 commit c6de272

File tree

100 files changed

+383
-383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+383
-383
lines changed

config/exercise_readme.go.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $ cargo test some_test -- --ignored
4343

4444
To learn more about Rust tests refer to the [online test documentation][rust-tests]
4545

46-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
46+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
4747
haven't already, it will help you with organizing your files.
4848

4949
## Feedback, Issues, Pull Requests
@@ -53,9 +53,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
5353
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
5454

5555
[help-page]: http://exercism.io/languages/rust
56-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
57-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
58-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
56+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
57+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
58+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
5959
{{ with .Spec.Credits }}
6060
## Source
6161

docs/ABOUT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.
22
It aims to bring modern language design and an advanced type system to systems programming.
33
Rust does not use a garbage collector, using advanced static analysis to provide deterministic drops instead.
4-
It accomplishes this via the concept of [ownership](https://doc.rust-lang.org/book/second-edition/ch04-00-understanding-ownership.html).
4+
It accomplishes this via the concept of [ownership](https://doc.rust-lang.org/book/2018-edition/ch04-00-understanding-ownership.html).
55

66
Rust's core and the standard library are intentionally minimal; batteries are not included.
77
Rustaceans are instead encouraged to add libraries, called _crates_, to the language by sharing them on [crates.io](https://crates.io/).
@@ -12,4 +12,4 @@ Regardless of what you build in Rust, it will be fast and memory safe!
1212

1313
The home page for Rust is [rust-lang.org](https://www.rust-lang.org/).
1414
Rust has excellent documentation at [rust-lang.org/documentation.html](https://www.rust-lang.org/documentation.html).
15-
Newcomers should start with "The Book" located at [doc.rust-lang.org/book/second-edition/](https://doc.rust-lang.org/book/second-edition/).
15+
Newcomers should start with "The Book" located at [doc.rust-lang.org/book/2018-edition/](https://doc.rust-lang.org/book/2018-edition/).

docs/RESOURCES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Recommended Learning Resources
22

3-
* [The Rust Programming Language](https://doc.rust-lang.org/book/second-edition/) is a great resource for getting started with Rust as well as diving deeper into specific features of Rust.
3+
* [The Rust Programming Language](https://doc.rust-lang.org/book/2018-edition/) is a great resource for getting started with Rust as well as diving deeper into specific features of Rust.
44
* [Rust by Example](https://doc.rust-lang.org/stable/rust-by-example/) shows you examples of the most common things you will be writing in Rust.
55
* The [Rust API Documentation](http://doc.rust-lang.org/std/) can be used to discover new methods and how they work.
66
* [#rust](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust) on irc.mozilla.org is the official Rust IRC channel. Other channels include (but not limited to): [#rust-gamedev](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-gamedev), [#rust-osdev](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-osdev), and [#rust-webdev](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-webdev).

docs/TESTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Write your code in `src/lib.rs`. Some exercises come with a stub file in `src/lib.rs` that will show you the signatures of the code you'll need to write. If the exercise does not come with a `src/lib.rs` file, create one.
44

5-
The directory must be named `src` and the file must be named `lib.rs` otherwise your code will not compile. For more details, check out the rustlang book [chapter on modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html)
5+
The directory must be named `src` and the file must be named `lib.rs` otherwise your code will not compile. For more details, check out the rustlang book [chapter on modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html)
66

77
### Running Tests
88

@@ -16,4 +16,4 @@ Only the first test is enabled by default. After you are ready to pass the next
1616

1717
You should try to write as little code possible to get the tests to pass. Let the test failures guide you to what should be written next.
1818

19-
Because Rust checks all code at compile time you may find that your tests won't compile until you write the required code. Even `ignore`d tests are checked at compile time. You can [comment out](https://doc.rust-lang.org/book/second-edition/ch03-04-comments.html) tests that won't compile by starting each line with a `//`. Then, when you're ready to work on that test, you can un-comment it.
19+
Because Rust checks all code at compile time you may find that your tests won't compile until you write the required code. Even `ignore`d tests are checked at compile time. You can [comment out](https://doc.rust-lang.org/book/2018-edition/ch03-04-comments.html) tests that won't compile by starting each line with a `//`. Then, when you're ready to work on that test, you can un-comment it.

exercises/accumulate/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $ cargo test some_test -- --ignored
7373

7474
To learn more about Rust tests refer to the [online test documentation][rust-tests]
7575

76-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
76+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
7777
haven't already, it will help you with organizing your files.
7878

7979
## Feedback, Issues, Pull Requests
@@ -83,9 +83,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
8383
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
8484

8585
[help-page]: http://exercism.io/languages/rust
86-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
87-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
88-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
86+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
87+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
88+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
8989

9090
## Source
9191

exercises/acronym/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $ cargo test some_test -- --ignored
4646

4747
To learn more about Rust tests refer to the [online test documentation][rust-tests]
4848

49-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
49+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
5050
haven't already, it will help you with organizing your files.
5151

5252
## Feedback, Issues, Pull Requests
@@ -56,9 +56,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
5656
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
5757

5858
[help-page]: http://exercism.io/languages/rust
59-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
60-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
61-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
59+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
60+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
61+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
6262

6363
## Source
6464

exercises/all-your-base/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $ cargo test some_test -- --ignored
7070

7171
To learn more about Rust tests refer to the [online test documentation][rust-tests]
7272

73-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
73+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
7474
haven't already, it will help you with organizing your files.
7575

7676
## Feedback, Issues, Pull Requests
@@ -80,9 +80,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
8080
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
8181

8282
[help-page]: http://exercism.io/languages/rust
83-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
84-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
85-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
83+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
84+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
85+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
8686

8787
## Submitting Incomplete Solutions
8888
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

exercises/allergies/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $ cargo test some_test -- --ignored
6868

6969
To learn more about Rust tests refer to the [online test documentation][rust-tests]
7070

71-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
71+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
7272
haven't already, it will help you with organizing your files.
7373

7474
## Feedback, Issues, Pull Requests
@@ -78,9 +78,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
7878
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
7979

8080
[help-page]: http://exercism.io/languages/rust
81-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
82-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
83-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
81+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
82+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
83+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
8484

8585
## Source
8686

exercises/alphametics/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $ cargo test some_test -- --ignored
7070

7171
To learn more about Rust tests refer to the [online test documentation][rust-tests]
7272

73-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
73+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
7474
haven't already, it will help you with organizing your files.
7575

7676
## Feedback, Issues, Pull Requests
@@ -80,9 +80,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
8080
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
8181

8282
[help-page]: http://exercism.io/languages/rust
83-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
84-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
85-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
83+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
84+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
85+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
8686

8787
## Submitting Incomplete Solutions
8888
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

exercises/anagram/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $ cargo test some_test -- --ignored
4545

4646
To learn more about Rust tests refer to the [online test documentation][rust-tests]
4747

48-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
48+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
4949
haven't already, it will help you with organizing your files.
5050

5151
## Feedback, Issues, Pull Requests
@@ -55,9 +55,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
5555
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
5656

5757
[help-page]: http://exercism.io/languages/rust
58-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
59-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
60-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
58+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
59+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
60+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
6161

6262
## Source
6363

exercises/armstrong-numbers/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $ cargo test some_test -- --ignored
5050

5151
To learn more about Rust tests refer to the [online test documentation][rust-tests]
5252

53-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
53+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
5454
haven't already, it will help you with organizing your files.
5555

5656
## Feedback, Issues, Pull Requests
@@ -60,9 +60,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
6060
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
6161

6262
[help-page]: http://exercism.io/languages/rust
63-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
64-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
65-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
63+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
64+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
65+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
6666

6767
## Source
6868

exercises/atbash-cipher/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $ cargo test some_test -- --ignored
6767

6868
To learn more about Rust tests refer to the [online test documentation][rust-tests]
6969

70-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
70+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
7171
haven't already, it will help you with organizing your files.
7272

7373
## Feedback, Issues, Pull Requests
@@ -77,9 +77,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
7777
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
7878

7979
[help-page]: http://exercism.io/languages/rust
80-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
81-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
82-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
80+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
81+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
82+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
8383

8484
## Source
8585

exercises/beer-song/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ $ cargo test some_test -- --ignored
359359

360360
To learn more about Rust tests refer to the [online test documentation][rust-tests]
361361

362-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
362+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
363363
haven't already, it will help you with organizing your files.
364364

365365
## Feedback, Issues, Pull Requests
@@ -369,9 +369,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
369369
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
370370

371371
[help-page]: http://exercism.io/languages/rust
372-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
373-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
374-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
372+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
373+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
374+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
375375

376376
## Source
377377

exercises/binary-search/.meta/hints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For this exercise you should not use this function but just other basic tools in
66

77
## Hints
88

9-
[Slices](https://doc.rust-lang.org/book/second-edition/ch04-03-slices.html) have additionally to
9+
[Slices](https://doc.rust-lang.org/book/2018-edition/ch04-03-slices.html) have additionally to
1010
the normal element access via indexing (slice[index]) many useful functions like
1111
[split_at](https://doc.rust-lang.org/std/primitive.slice.html#method.split_at) or [getting
1212
subslices](https://doc.rust-lang.org/std/primitive.slice.html#method.get) (slice[start..end]).

exercises/binary-search/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For this exercise you should not use this function but just other basic tools in
4242

4343
## Hints
4444

45-
[Slices](https://doc.rust-lang.org/book/second-edition/ch04-03-slices.html) have additionally to
45+
[Slices](https://doc.rust-lang.org/book/2018-edition/ch04-03-slices.html) have additionally to
4646
the normal element access via indexing (slice[index]) many useful functions like
4747
[split_at](https://doc.rust-lang.org/std/primitive.slice.html#method.split_at) or [getting
4848
subslices](https://doc.rust-lang.org/std/primitive.slice.html#method.get) (slice[start..end]).
@@ -118,7 +118,7 @@ $ cargo test some_test -- --ignored
118118

119119
To learn more about Rust tests refer to the [online test documentation][rust-tests]
120120

121-
Make sure to read the [Modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html) chapter if you
121+
Make sure to read the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html) chapter if you
122122
haven't already, it will help you with organizing your files.
123123

124124
## Feedback, Issues, Pull Requests
@@ -128,9 +128,9 @@ The [exercism/rust](https://github.com/exercism/rust) repository on GitHub is th
128128
If you want to know more about Exercism, take a look at the [contribution guide](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/README.md).
129129

130130
[help-page]: http://exercism.io/languages/rust
131-
[modules]: https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html
132-
[cargo]: https://doc.rust-lang.org/book/second-edition/ch14-00-more-about-cargo.html
133-
[rust-tests]: https://doc.rust-lang.org/book/second-edition/ch11-02-running-tests.html
131+
[modules]: https://doc.rust-lang.org/book/2018-edition/ch07-00-modules.html
132+
[cargo]: https://doc.rust-lang.org/book/2018-edition/ch14-00-more-about-cargo.html
133+
[rust-tests]: https://doc.rust-lang.org/book/2018-edition/ch11-02-running-tests.html
134134

135135
## Source
136136

0 commit comments

Comments
 (0)