add solutions for variables

This commit is contained in:
sunface
2022-03-01 22:06:38 +08:00
parent 47d37b6940
commit 258f0ed589
32 changed files with 85 additions and 24 deletions

View File

@ -163,4 +163,6 @@ fn main() {
// 在下面增加一行代码人为制造编译错误cannot borrow `s` as mutable more than once at a time
// 你不能同时使用 r1 和 r2
}
```
```
> 你可以在[这里](https://github.com/sunface/rust-by-practice)找到答案(在 solutions 路径下)

View File

@ -164,4 +164,6 @@ fn main() {
println!("{:?}, {:?}, {:?}", s1, s2, t);
}
```
```
> 你可以在[这里](https://github.com/sunface/rust-by-practice)找到答案(在 solutions 路径下)