We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c3b9ad + 06d8b21 commit 078b288Copy full SHA for 078b288
src/doc/book/references-and-borrowing.md
@@ -212,7 +212,7 @@ fn main() {
212
213
In other words, the mutable borrow is held through the rest of our example. What
214
we want is for the mutable borrow by `y` to end so that the resource can be
215
-returned to the owner, `x`. `x` can then provide a mutable borrow to `println!`.
+returned to the owner, `x`. `x` can then provide a immutable borrow to `println!`.
216
In Rust, borrowing is tied to the scope that the borrow is valid for. And our
217
scopes look like this:
218
0 commit comments