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.
1 parent 60a60b3 commit a021f43Copy full SHA for a021f43
src/fn/closures/capture.md
@@ -53,14 +53,14 @@ fn main() {
53
// Call the closure using a mutable borrow.
54
inc();
55
56
- // The closure still mutably borrows an `count` because it is called later.
+ // The closure still mutably borrows `count` because it is called later.
57
// An attempt to reborrow will lead to an error.
58
// let _reborrow = &count;
59
// ^ TODO: try uncommenting this line.
60
61
62
- // The closure is no longer in use and no longer needs to borrow `&mut
63
- // count`. Therefore, it is possible to reborrow without an error
+ // The closure no longer needs to borrow `&mut count`. Therefore, it is
+ // possible to reborrow without an error
64
let _count_reborrowed = &mut count;
65
66
0 commit comments