@@ -309,7 +309,7 @@ In Rust, there are two ways to define a Vector.
309
309
inside the square brackets. This way is simpler when you exactly know
310
310
the initial values.
311
311
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
313
313
of the Rust book to learn more."""
314
314
315
315
[[exercises ]]
@@ -378,7 +378,7 @@ dir = "06_move_semantics"
378
378
test = false
379
379
hint = """
380
380
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
382
382
383
383
The first problem is that `get_char` is taking ownership of the string. So
384
384
`data` is moved and can't be used for `string_uppercase`. `data` is moved to
@@ -416,7 +416,7 @@ to its fields.
416
416
417
417
There are however some shortcuts that can be taken when instantiating structs.
418
418
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"""
420
420
421
421
[[exercises ]]
422
422
name = " structs3"
@@ -487,7 +487,7 @@ to add one character to the `if` statement, though, that will coerce the
487
487
Side note: If you're interested in learning about how this kind of reference
488
488
conversion works, you can jump ahead in the book and read this part in the
489
489
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"""
491
491
492
492
[[exercises ]]
493
493
name = " strings3"
@@ -561,7 +561,7 @@ hint = """
561
561
Use the `entry()` and `or_insert()` methods of `HashMap` to achieve this.
562
562
563
563
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"""
565
565
566
566
[[exercises ]]
567
567
name = " hashmaps3"
@@ -572,7 +572,7 @@ Hint 1: Use the `entry()` and `or_insert()` (or `or_insert_with()`) methods of
572
572
exist in the table yet.
573
573
574
574
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
576
576
577
577
Hint 2: If there is already an entry for a given key, the value returned by
578
578
`entry()` can be updated based on the existing value.
@@ -739,7 +739,7 @@ name = "generics2"
739
739
dir = " 14_generics"
740
740
hint = """
741
741
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"""
743
743
744
744
# TRAITS
745
745
@@ -871,7 +871,7 @@ We expect the method `Rectangle::new` to panic for negative values.
871
871
To handle that, you need to add a special attribute to the test function.
872
872
873
873
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"""
875
875
876
876
# STANDARD LIBRARY TYPES
877
877
@@ -1007,7 +1007,7 @@ thread-local copy of the numbers.
1007
1007
This is a simple exercise if you understand the underlying concepts, but if this
1008
1008
is too much of a struggle, consider reading through all of Chapter 16 in The
1009
1009
Book:
1010
- https://doc.rust-lang.org/stable/ book/ch16-00-concurrency.html"""
1010
+ https://doc.rust-lang.org/book/ch16-00-concurrency.html"""
1011
1011
1012
1012
[[exercises ]]
1013
1013
name = " cow1"
0 commit comments