Skip to content

Commit a021f43

Browse files
committed
typos
1 parent 60a60b3 commit a021f43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fn/closures/capture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ fn main() {
5353
// Call the closure using a mutable borrow.
5454
inc();
5555
56-
// The closure still mutably borrows an `count` because it is called later.
56+
// The closure still mutably borrows `count` because it is called later.
5757
// An attempt to reborrow will lead to an error.
5858
// let _reborrow = &count;
5959
// ^ TODO: try uncommenting this line.
6060
inc();
6161
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
62+
// The closure no longer needs to borrow `&mut count`. Therefore, it is
63+
// possible to reborrow without an error
6464
let _count_reborrowed = &mut count;
6565
6666

0 commit comments

Comments
 (0)