We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015d3b7 commit 06d8b21Copy full SHA for 06d8b21
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