Skip to content

Commit

Permalink
Rollup merge of rust-lang#35794 - cantino:fix-typo, r=apasel422
Browse files Browse the repository at this point in the history
Fix minor typo

Minor typo in the book.
  • Loading branch information
Jonathan Turner authored Aug 19, 2016
2 parents e687461 + 06302cb commit 598ebb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ fn call_with_ref<'a, F>(some_closure:F) -> i32
where F: Fn(&'a i32) -> i32 {
```

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

0 comments on commit 598ebb8

Please sign in to comment.