mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-22 23:10:20 +08:00
Update ch04-02-references-and-borrowing.md (#108)
This commit is contained in:
parent
c07ee4d0d3
commit
0d345ed4c0
@ -54,7 +54,7 @@
|
||||
{{#include ../listings/ch04-understanding-ownership/listing-04-06/output.txt}}
|
||||
```
|
||||
|
||||
正如变量默认是不可变的,引用也一样。(默认)不允许修改引用的值。
|
||||
正如变量在默认情况下是不可变的一样,引用也是不可变的。我们无法通过引用修改内容。
|
||||
|
||||
### 可变引用
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user