Skip to content

Commit 63c133e

Browse files
committed
chore: Fix a couple broken book links
1 parent b8d59d6 commit 63c133e

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

exercises/error_handling/errorsn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl error::Error for CreationError {
195195
// can be returned from the same function because all errors act the same
196196
// since they all implement the `error::Error` trait.
197197
// Check out this section of the book:
198-
// https://doc.rust-lang.org/stable/book/second-edition/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator
198+
// https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator
199199

200200

201201

exercises/functions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Here, you'll learn how to write functions and how Rust's compiler can trace thin
44

55
#### Book Sections
66

7-
- [How Functions Work](https://doc.rust-lang.org/stable/book/ch03-03-how-functions-work.html)
7+
- [How Functions Work](https://doc.rust-lang.org/book/ch03-03-how-functions-work.html)

exercises/if/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
#### Book Sections
66

7-
- [Control Flow - if expressions](https://doc.rust-lang.org/stable/book/ch03-05-control-flow.html#if-expressions)
7+
- [Control Flow - if expressions](https://doc.rust-lang.org/book/ch03-05-control-flow.html#if-expressions)

exercises/macros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ modules, instead we'll show you how to use and create them.
66

77
#### Book Sections
88

9-
- [Macros](https://doc.rust-lang.org/stable/book/ch19-06-macros.html)
9+
- [Macros](https://doc.rust-lang.org/book/ch19-06-macros.html)
1010
- [The Little Book of Rust Macros](https://danielkeep.github.io/tlborm/book/index.html)

exercises/modules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ In this section we'll give you an introduction to Rust's module system.
44

55
#### Book Sections
66

7-
- [The Module System](https://doc.rust-lang.org/stable/book/ch07-02-defining-modules-to-control-scope-and-privacy.html)
7+
- [The Module System](https://doc.rust-lang.org/book/ch07-02-defining-modules-to-control-scope-and-privacy.html)

exercises/move_semantics/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ These exercises are adapted from [pnkfelix](https://github.com/pnkfelix)'s [Rust
66

77
For this section, the book links are especially important.
88

9-
- [Ownership](https://doc.rust-lang.org/stable/book/ch04-01-what-is-ownership.html)
10-
- [Reference and borrowing](https://doc.rust-lang.org/stable/book/ch04-02-references-and-borrowing.html)
9+
- [Ownership](https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html)
10+
- [Reference and borrowing](https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html)

exercises/primitive_types/primitive_types5.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn main() {
3939

4040

4141
// Take a look at the Data Types -> The Tuple Type section of the book:
42-
// https://doc.rust-lang.org/stable/book/ch03-02-data-types.html#the-tuple-type
43-
// Particularly the part about destructuring (second to last example in the section).
42+
// https://doc.rust-lang.org/book/ch03-02-data-types.html#the-tuple-type
43+
// Particularly the part about destructuring (second to last example in the section).
4444
// You'll need to make a pattern to bind `name` and `age` to the appropriate parts
4545
// of the tuple. You can do it!!

exercises/primitive_types/primitive_types6.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ fn main() {
3838

3939

4040

41-
// While you could use a destructuring `let` for the tuple here, try
42-
// indexing into it instead, as explained in the last example of the
41+
// While you could use a destructuring `let` for the tuple here, try
42+
// indexing into it instead, as explained in the last example of the
4343
// Data Types -> The Tuple Type section of the book:
44-
// https://doc.rust-lang.org/stable/book/ch03-02-data-types.html#the-tuple-type
44+
// https://doc.rust-lang.org/book/ch03-02-data-types.html#the-tuple-type
4545
// Now you have another tool in your toolbox!

exercises/strings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ to identify and create them, as well as use them.
66

77
#### Book Sections
88

9-
- [Strings](https://doc.rust-lang.org/stable/book/ch08-02-strings.html)
9+
- [Strings](https://doc.rust-lang.org/book/ch08-02-strings.html)

exercises/tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Going out of order from the book to cover tests -- many of the following exercis
44

55
#### Book Sections
66

7-
- [Writing Tests](https://doc.rust-lang.org/stable/book/ch11-01-writing-tests.html)
7+
- [Writing Tests](https://doc.rust-lang.org/book/ch11-01-writing-tests.html)

0 commit comments

Comments
 (0)