Merge pull request #282 from Diaosi1111/master

添加第十章答案链接
This commit is contained in:
Sunface 2022-07-28 09:03:52 +08:00 committed by GitHub
commit 8383de7629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 14 additions and 12 deletions

View File

@ -201,7 +201,7 @@ fn main() {
```
### 常用方法
### 常用方法(TODO)
关于 String 的常用方法练习,可以查看[这里](../std/String.md).
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/collections/String.md)(under the solutions path), but only use it when you need it
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/collections/String.md)找到答案(在 solutions 路径下)

View File

@ -220,4 +220,4 @@ hash.insert(42, "the answer");
assert_eq!(hash.get(&42), Some(&"the answer"));
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/collections/Hashmap.md)(under the solutions path), but only use it when you need it
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/collections/Hashmap.md)找到答案(在 solutions 路径下)

View File

@ -245,4 +245,4 @@ fn main() {
}
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/collections/Vector.md)(under the solutions path), but only use it when you need it
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/collections/Vector.md)找到答案(在 solutions 路径下)

View File

@ -108,4 +108,4 @@ edition = "2021"
可以看到,上面的 package 结构非常标准,你可以在很多 Rust 项目中看到该结构的身影。
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/crate.md) (under the solutions path), but only use it when you need it :)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/crate.md)找到答案(在 solutions 路径下)

View File

@ -192,4 +192,4 @@ fn main() {
}
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/module.md) (under the solutions path), but only use it when you need it :)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/module.md)找到答案(在 solutions 路径下)

View File

@ -67,4 +67,4 @@ pub mod a {
至此,包与模块章节已经结束,关于 `hello-package` 的完整代码可以在[这里](https://github.com/sunface/rust-by-practice/tree/master/practices/hello-package) 找到.
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/use-pub.md) (under the solutions path), but only use it when you need it :)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/use-pub.md)找到答案(在 solutions 路径下)

View File

@ -268,4 +268,4 @@ fn main() {
}
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/advanced-trait.md)(under the solutions path), but only use it when you need it :)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/advanced-trait.md)找到答案(在 solutions 路径下)

View File

@ -134,4 +134,6 @@ pub enum Assert<const CHECK: bool> {}
pub trait IsTrue {}
impl IsTrue for Assert<true> {}
```
```
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/const-generics.md)找到答案(在 solutions 路径下)

View File

@ -223,4 +223,4 @@ fn main() {
}
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/trait-object.md)(under the solutions path), but only use it when you need it :)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/trait-object.md)找到答案(在 solutions 路径下)

View File

@ -467,4 +467,4 @@ fn main() {
}
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/traits.md)(under the solutions path), but only use it when you need it :)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/traits.md)找到答案(在 solutions 路径下)

View File

@ -110,6 +110,6 @@ fn main() {
&mut value => value.push_str(" world!")
}
}
````
```
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/pattern-match/patterns.md)找到答案(在 solutions 路径下)