Skip to content

Commit 69021e1

Browse files
committed
Remove stable from book links
1 parent 08c408a commit 69021e1

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

exercises/04_primitive_types/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ compiler. In this section, we'll go through the most important ones.
55

66
## Further information
77

8-
- [Data Types](https://doc.rust-lang.org/stable/book/ch03-02-data-types.html)
9-
- [The Slice Type](https://doc.rust-lang.org/stable/book/ch04-03-slices.html)
8+
- [Data Types](https://doc.rust-lang.org/book/ch03-02-data-types.html)
9+
- [The Slice Type](https://doc.rust-lang.org/book/ch04-03-slices.html)

exercises/05_vecs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ the other useful data structure, hash maps, later.
1212

1313
## Further information
1414

15-
- [Storing Lists of Values with Vectors](https://doc.rust-lang.org/stable/book/ch08-01-vectors.html)
15+
- [Storing Lists of Values with Vectors](https://doc.rust-lang.org/book/ch08-01-vectors.html)
1616
- [`iter_mut`](https://doc.rust-lang.org/std/primitive.slice.html#method.iter_mut)
1717
- [`map`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map)

exercises/12_options/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Option types are very common in Rust code, as they have a number of uses:
1414

1515
## Further Information
1616

17-
- [Option Enum Format](https://doc.rust-lang.org/stable/book/ch10-01-syntax.html#in-enum-definitions)
17+
- [Option Enum Format](https://doc.rust-lang.org/book/ch10-01-syntax.html#in-enum-definitions)
1818
- [Option Module Documentation](https://doc.rust-lang.org/std/option/)
1919
- [Option Enum Documentation](https://doc.rust-lang.org/std/option/enum.Option.html)
2020
- [if let](https://doc.rust-lang.org/rust-by-example/flow_control/if_let.html)

exercises/14_generics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ The simplest and most common use of generics is for type parameters.
77

88
## Further information
99

10-
- [Generic Data Types](https://doc.rust-lang.org/stable/book/ch10-01-syntax.html)
10+
- [Generic Data Types](https://doc.rust-lang.org/book/ch10-01-syntax.html)
1111
- [Bounds](https://doc.rust-lang.org/rust-by-example/generics/bounds.html)

rustlings-macros/info.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ In Rust, there are two ways to define a Vector.
309309
inside the square brackets. This way is simpler when you exactly know
310310
the initial values.
311311
312-
Check this chapter: https://doc.rust-lang.org/stable/book/ch08-01-vectors.html
312+
Check this chapter: https://doc.rust-lang.org/book/ch08-01-vectors.html
313313
of the Rust book to learn more."""
314314

315315
[[exercises]]
@@ -378,7 +378,7 @@ dir = "06_move_semantics"
378378
test = false
379379
hint = """
380380
To find the answer, you can consult the book section "References and Borrowing":
381-
https://doc.rust-lang.org/stable/book/ch04-02-references-and-borrowing.html
381+
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html
382382
383383
The first problem is that `get_char` is taking ownership of the string. So
384384
`data` is moved and can't be used for `string_uppercase`. `data` is moved to
@@ -416,7 +416,7 @@ to its fields.
416416
417417
There are however some shortcuts that can be taken when instantiating structs.
418418
Have a look in The Book to find out more:
419-
https://doc.rust-lang.org/stable/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax"""
419+
https://doc.rust-lang.org/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax"""
420420

421421
[[exercises]]
422422
name = "structs3"
@@ -487,7 +487,7 @@ to add one character to the `if` statement, though, that will coerce the
487487
Side note: If you're interested in learning about how this kind of reference
488488
conversion works, you can jump ahead in the book and read this part in the
489489
smart pointers chapter:
490-
https://doc.rust-lang.org/stable/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods"""
490+
https://doc.rust-lang.org/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods"""
491491

492492
[[exercises]]
493493
name = "strings3"
@@ -561,7 +561,7 @@ hint = """
561561
Use the `entry()` and `or_insert()` methods of `HashMap` to achieve this.
562562
563563
Learn more in The Book:
564-
https://doc.rust-lang.org/stable/book/ch08-03-hash-maps.html#only-inserting-a-value-if-the-key-has-no-value"""
564+
https://doc.rust-lang.org/book/ch08-03-hash-maps.html#only-inserting-a-value-if-the-key-has-no-value"""
565565

566566
[[exercises]]
567567
name = "hashmaps3"
@@ -572,7 +572,7 @@ Hint 1: Use the `entry()` and `or_insert()` (or `or_insert_with()`) methods of
572572
exist in the table yet.
573573
574574
Learn more in The Book:
575-
https://doc.rust-lang.org/stable/book/ch08-03-hash-maps.html#only-inserting-a-value-if-the-key-has-no-value
575+
https://doc.rust-lang.org/book/ch08-03-hash-maps.html#only-inserting-a-value-if-the-key-has-no-value
576576
577577
Hint 2: If there is already an entry for a given key, the value returned by
578578
`entry()` can be updated based on the existing value.
@@ -739,7 +739,7 @@ name = "generics2"
739739
dir = "14_generics"
740740
hint = """
741741
Related section in The Book:
742-
https://doc.rust-lang.org/stable/book/ch10-01-syntax.html#in-method-definitions"""
742+
https://doc.rust-lang.org/book/ch10-01-syntax.html#in-method-definitions"""
743743

744744
# TRAITS
745745

@@ -871,7 +871,7 @@ We expect the method `Rectangle::new` to panic for negative values.
871871
To handle that, you need to add a special attribute to the test function.
872872
873873
You can refer to the docs:
874-
https://doc.rust-lang.org/stable/book/ch11-01-writing-tests.html#checking-for-panics-with-should_panic"""
874+
https://doc.rust-lang.org/book/ch11-01-writing-tests.html#checking-for-panics-with-should_panic"""
875875

876876
# STANDARD LIBRARY TYPES
877877

@@ -1007,7 +1007,7 @@ thread-local copy of the numbers.
10071007
This is a simple exercise if you understand the underlying concepts, but if this
10081008
is too much of a struggle, consider reading through all of Chapter 16 in The
10091009
Book:
1010-
https://doc.rust-lang.org/stable/book/ch16-00-concurrency.html"""
1010+
https://doc.rust-lang.org/book/ch16-00-concurrency.html"""
10111011

10121012
[[exercises]]
10131013
name = "cow1"

0 commit comments

Comments
 (0)