Merge pull request #433 from Lemonaire/patch-1

Fix typo in basic/ownership/borrowing.md
pull/434/head
孙飞Sunface 3 years ago committed by GitHub
commit 095dbb8b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,7 @@ fn change(some_string: &String) {
} }
``` ```
很不幸,妹子你没抱到, 哦口误,你修改错了: 很不幸,妹子你没抱到哦口误,你修改错了:
```console ```console
error[E0596]: cannot borrow `*some_string` as mutable, as it is behind a `&` reference error[E0596]: cannot borrow `*some_string` as mutable, as it is behind a `&` reference
--> src/main.rs:8:5 --> src/main.rs:8:5

Loading…
Cancel
Save