Merge pull request #343 from jzzhen/patch-1

Update borrowing.md
pull/344/head
Sunface 3 years ago committed by GitHub
commit d8ed726d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -96,7 +96,7 @@ error[E0596]: cannot borrow `*some_string` as mutable, as it is behind a `&` ref
`some_string`是一个`&`类型的引用,因此它指向的数据无法进行修改
```
正如变量默认不可变一样,引用指向的值默认也是不可变的,没事,来一起看看如解决这个问题。
正如变量默认不可变一样,引用指向的值默认也是不可变的,没事,来一起看看如解决这个问题。
### 可变引用

Loading…
Cancel
Save