Update references in `book/src/04_traits` (#46)
authorShinya Fujino <shf0811@gmail.com>
Fri, 24 May 2024 08:27:29 +0000 (17:27 +0900)
committerGitHub <noreply@github.com>
Fri, 24 May 2024 08:27:29 +0000 (10:27 +0200)
book/src/04_traits/05_trait_bounds.md
book/src/04_traits/06_str_slice.md
book/src/04_traits/07_deref.md
book/src/04_traits/08_sized.md
book/src/04_traits/09_from.md
book/src/04_traits/10_assoc_vs_generic.md
book/src/04_traits/11_clone.md
book/src/04_traits/12_copy.md
book/src/04_traits/13_drop.md
book/src/04_traits/14_outro.md

index 9c3a50c..0f2e72c 100644 (file)
@@ -152,3 +152,7 @@ The rationale is the same as for [explicit type annotations on function paramete
 each function signature is a contract between the caller and the callee, and the terms must be explicitly stated. 
 This allows for better error messages, better documentation, less unintentional breakages across versions, 
 and faster compilation times.
+
+## References
+
+- The exercise for this section is located in `exercises/04_traits/05_trait_bounds`
index 4b78f1c..ffbdd6f 100644 (file)
@@ -117,4 +117,4 @@ bunch of text data and that a subset of it matches what you need, therefore you'
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/05_str_slice`
+- The exercise for this section is located in `exercises/04_traits/06_str_slice`
index 6947f7e..b1fa628 100644 (file)
@@ -92,4 +92,4 @@ We'll examine later in the course the "safest" use cases for deref coercion: sma
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/06_deref`
+- The exercise for this section is located in `exercises/04_traits/07_deref`
index ddbfbdc..b26996e 100644 (file)
@@ -80,4 +80,4 @@ and one for the length.
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/07_sized`
+- The exercise for this section is located in `exercises/04_traits/08_sized`
index 4048955..1ed1431 100644 (file)
@@ -130,4 +130,4 @@ In most cases, the target type is either:
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/08_from`
+- The exercise for this section is located in `exercises/04_traits/09_from`
index 8961777..58a63f2 100644 (file)
@@ -115,4 +115,4 @@ To recap:
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/09_assoc_vs_generic`
+- The exercise for this section is located in `exercises/04_traits/10_assoc_vs_generic`
index a897b48..e6900e4 100644 (file)
@@ -108,4 +108,4 @@ Remember that you can use `cargo expand` (or your IDE) to explore the code gener
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/10_clone`
+- The exercise for this section is located in `exercises/04_traits/11_clone`
index bf26b26..572ed17 100644 (file)
@@ -114,4 +114,4 @@ struct MyStruct {
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/11_copy`
+- The exercise for this section is located in `exercises/04_traits/12_copy`
index 5368abd..ff1c54a 100644 (file)
@@ -53,4 +53,4 @@ error[E0184]: the trait `Copy` cannot be implemented for this type; the type has
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/12_drop`
+- The exercise for this section is located in `exercises/04_traits/13_drop`
index 2e1cd85..ad6b030 100644 (file)
@@ -9,4 +9,4 @@ You'll have minimal guidance this timeā€”just the exercise description and the t
 
 ## References
 
-- The exercise for this section is located in `exercises/04_traits/13_outro` 
+- The exercise for this section is located in `exercises/04_traits/14_outro`