14章
This commit is contained in:
parent
386d88d476
commit
019108a569
|
@ -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 路径下)
|
|
@ -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 路径下)
|
|
@ -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 路径下)
|
|
@ -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 路径下)
|
Loading…
Reference in New Issue