Skip to content

Commit 0c84f23

Browse files
authored
Merge pull request #1143 from lzutao/book-links
Use new book links instead of the old second-edition ones
2 parents 888e545 + 6c5bd9c commit 0c84f23

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/cargo/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
As we know testing is integral to any piece of software! Rust has first-class
44
support for unit and integration testing ([see this
5-
chapter](https://doc.rust-lang.org/book/second-edition/ch11-00-testing.html) in
5+
chapter](https://doc.rust-lang.org/book/ch11-00-testing.html) in
66
TRPL).
77

88
From the testing chapters linked above, we see how to write unit tests and

src/error.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ do that unless it's a test or quick prototype).
2828
For a more rigorous discussion of error handling, refer to the error
2929
handling section in the [official book][book].
3030

31-
[book]: https://doc.rust-lang.org/book/second-edition/ch09-00-error-handling.html
31+
[book]: https://doc.rust-lang.org/book/ch09-00-error-handling.html

src/error/multiple_error_types/boxing_errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ fn main() {
6868
[Dynamic dispatch][dynamic_dispatch] and [`Error` trait][error]
6969

7070
[box]: https://doc.rust-lang.org/std/boxed/struct.Box.html
71-
[dynamic_dispatch]: https://doc.rust-lang.org/book/second-edition/ch17-02-trait-objects.html#trait-objects-perform-dynamic-dispatch
71+
[dynamic_dispatch]: https://doc.rust-lang.org/book/ch17-02-trait-objects.html#trait-objects-perform-dynamic-dispatch
7272
[error]: https://doc.rust-lang.org/std/error/trait.Error.html
7373
[from]: https://doc.rust-lang.org/std/convert/trait.From.html

src/scope/lifetime/elision.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ fn main() {
4040

4141
[elision][elision]
4242

43-
[elision]: https://doc.rust-lang.org/book/second-edition/ch10-03-lifetime-syntax.html#lifetime-elision
43+
[elision]: https://doc.rust-lang.org/book/ch10-03-lifetime-syntax.html#lifetime-elision

src/std_misc/threads/testcase_mapreduce.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ defined by a static constant at the beginning of the program.
143143
[thread]: std_misc/threads.html
144144
[vectors]: std/vec.html
145145
[iterators]: trait/iter.html
146-
[destructuring]: https://doc.rust-lang.org/book/second-edition/ch18-03-pattern-syntax.html#destructuring-to-break-apart-values
146+
[destructuring]: https://doc.rust-lang.org/book/ch18-03-pattern-syntax.html#destructuring-to-break-apart-values
147147
[closures]: fn/closures.html
148148
[move]: scope/move.html
149-
[move_closure]: https://doc.rust-lang.org/book/second-edition/ch13-01-closures.html#closures-can-capture-their-environment
149+
[move_closure]: https://doc.rust-lang.org/book/ch13-01-closures.html#closures-can-capture-their-environment
150150
[turbofish]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect
151151
[unwrap]: error/option_unwrap.html
152152
[enumerate]: https://doc.rust-lang.org/book/loops.html#enumerate

src/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ Also Rust has support for specifying additional dependencies for tests:
2222
[doc]: testing/doc_testing.html
2323
[integration]: testing/integration_testing.html
2424
[dev-dependencies]: testing/dev_dependencies.html
25-
[doc-testing]: https://doc.rust-lang.org/book/second-edition/ch11-00-testing.html
25+
[doc-testing]: https://doc.rust-lang.org/book/ch11-00-testing.html
2626
[doc-nursery]: https://rust-lang-nursery.github.io/api-guidelines/documentation.html

src/trait/ops.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ fn main() {
5858

5959
[add]: https://doc.rust-lang.org/core/ops/trait.Add.html
6060
[ops]: https://doc.rust-lang.org/core/ops/
61-
[syntax]:https://doc.rust-lang.org/book/second-edition/appendix-02-operators.html
61+
[syntax]:https://doc.rust-lang.org/book/appendix-02-operators.html

src/unsafe.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ is of the correct type. If these invariants aren't upheld then the program's
5757
behaviour is undefined and there is no knowing what will happen.
5858

5959

60-
[unsafe]: https://doc.rust-lang.org/book/second-edition/ch19-01-unsafe-rust.html
60+
[unsafe]: https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html
6161
[`std::slice::from_raw_parts`]: https://doc.rust-lang.org/std/slice/fn.from_raw_parts.html

0 commit comments

Comments
 (0)