Skip to content

Commit dc3b3af

Browse files
Rollup merge of #37398 - zoffixznet:patch-1, r=GuillaumeGomez
Fix typo
2 parents 46c5c6c + 22ce98d commit dc3b3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/references-and-borrowing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn main() {
240240

241241
In other words, the mutable borrow is held through the rest of our example. What
242242
we want is for the mutable borrow by `y` to end so that the resource can be
243-
returned to the owner, `x`. `x` can then provide a immutable borrow to `println!`.
243+
returned to the owner, `x`. `x` can then provide an immutable borrow to `println!`.
244244
In Rust, borrowing is tied to the scope that the borrow is valid for. And our
245245
scopes look like this:
246246

0 commit comments

Comments
 (0)