mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
add solutions for variables
This commit is contained in:
@ -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 路径下)
|
@ -164,4 +164,6 @@ fn main() {
|
||||
|
||||
println!("{:?}, {:?}, {:?}", s1, s2, t);
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
> 你可以在[这里](https://github.com/sunface/rust-by-practice)找到答案(在 solutions 路径下)
|
Reference in New Issue
Block a user