Skip to content

Commit 22ce98d

Browse files
authored
Fix typo
1 parent affc3b7 commit 22ce98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)