Skip to content

Commit 3d9bc76

Browse files
authored
Rollup merge of rust-lang#35794 - cantino:fix-typo, r=apasel422
Fix minor typo Minor typo in the book.
2 parents 443a2ac + 06302cb commit 3d9bc76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/closures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ fn call_with_ref<'a, F>(some_closure:F) -> i32
340340
where F: Fn(&'a i32) -> i32 {
341341
```
342342

343-
However this presents a problem with in our case. When you specify the explicit
343+
However this presents a problem in our case. When you specify the explicit
344344
lifetime on a function it binds that lifetime to the *entire* scope of the function
345345
instead of just the invocation scope of our closure. This means that the borrow checker
346346
will see a mutable reference in the same lifetime as our immutable reference and fail

0 commit comments

Comments
 (0)