From d2be52f32f1f20e312f0301551bd5d9e15f283cd Mon Sep 17 00:00:00 2001 From: Shinya Fujino Date: Fri, 24 May 2024 17:27:29 +0900 Subject: [PATCH] Update references in `book/src/04_traits` (#46) --- book/src/04_traits/05_trait_bounds.md | 4 ++++ book/src/04_traits/06_str_slice.md | 2 +- book/src/04_traits/07_deref.md | 2 +- book/src/04_traits/08_sized.md | 2 +- book/src/04_traits/09_from.md | 2 +- book/src/04_traits/10_assoc_vs_generic.md | 2 +- book/src/04_traits/11_clone.md | 2 +- book/src/04_traits/12_copy.md | 2 +- book/src/04_traits/13_drop.md | 2 +- book/src/04_traits/14_outro.md | 2 +- 10 files changed, 13 insertions(+), 9 deletions(-) diff --git a/book/src/04_traits/05_trait_bounds.md b/book/src/04_traits/05_trait_bounds.md index 9c3a50c..0f2e72c 100644 --- a/book/src/04_traits/05_trait_bounds.md +++ b/book/src/04_traits/05_trait_bounds.md @@ -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` diff --git a/book/src/04_traits/06_str_slice.md b/book/src/04_traits/06_str_slice.md index 4b78f1c..ffbdd6f 100644 --- a/book/src/04_traits/06_str_slice.md +++ b/book/src/04_traits/06_str_slice.md @@ -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` diff --git a/book/src/04_traits/07_deref.md b/book/src/04_traits/07_deref.md index 6947f7e..b1fa628 100644 --- a/book/src/04_traits/07_deref.md +++ b/book/src/04_traits/07_deref.md @@ -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` diff --git a/book/src/04_traits/08_sized.md b/book/src/04_traits/08_sized.md index ddbfbdc..b26996e 100644 --- a/book/src/04_traits/08_sized.md +++ b/book/src/04_traits/08_sized.md @@ -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` diff --git a/book/src/04_traits/09_from.md b/book/src/04_traits/09_from.md index 4048955..1ed1431 100644 --- a/book/src/04_traits/09_from.md +++ b/book/src/04_traits/09_from.md @@ -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` diff --git a/book/src/04_traits/10_assoc_vs_generic.md b/book/src/04_traits/10_assoc_vs_generic.md index 8961777..58a63f2 100644 --- a/book/src/04_traits/10_assoc_vs_generic.md +++ b/book/src/04_traits/10_assoc_vs_generic.md @@ -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` diff --git a/book/src/04_traits/11_clone.md b/book/src/04_traits/11_clone.md index a897b48..e6900e4 100644 --- a/book/src/04_traits/11_clone.md +++ b/book/src/04_traits/11_clone.md @@ -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` diff --git a/book/src/04_traits/12_copy.md b/book/src/04_traits/12_copy.md index bf26b26..572ed17 100644 --- a/book/src/04_traits/12_copy.md +++ b/book/src/04_traits/12_copy.md @@ -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` diff --git a/book/src/04_traits/13_drop.md b/book/src/04_traits/13_drop.md index 5368abd..ff1c54a 100644 --- a/book/src/04_traits/13_drop.md +++ b/book/src/04_traits/13_drop.md @@ -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` diff --git a/book/src/04_traits/14_outro.md b/book/src/04_traits/14_outro.md index 2e1cd85..ad6b030 100644 --- a/book/src/04_traits/14_outro.md +++ b/book/src/04_traits/14_outro.md @@ -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` -- 2.45.2