TRPL: fix typo, borow for borrow
This commit is contained in:
parent
6a3d55abf0
commit
23ec00751e
@ -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
|
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
|
make an immutable borrow. In Rust, borrowing is tied to the scope that the
|
||||||
borrow is valid for. And our scopes look like this:
|
borrow is valid for. And our scopes look like this:
|
||||||
|
Loading…
Reference in New Issue
Block a user