TRPL: fix typo, borow for borrow
This commit is contained in:
parent
6a3d55abf0
commit
23ec00751e
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ fn main() {
|
|||
^
|
||||
```
|
||||
|
||||
In other words, the mutable borow is held through the rest of our example. What
|
||||
In other words, the mutable borrow is held through the rest of our example. What
|
||||
we want is for the mutable borrow to end _before_ we try to call `println!` and
|
||||
make an immutable borrow. In Rust, borrowing is tied to the scope that the
|
||||
borrow is valid for. And our scopes look like this:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue