diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-08-20 07:09:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-20 07:09:35 -0700 |
| commit | ad17e0c277b74a33aa8a20f4e66627260bc87232 (patch) | |
| tree | 853646724813e23dbabb054116795c26f46a0042 /src | |
| parent | f4b123f05f5ec380e717843f4afd91ac4a798b96 (diff) | |
| parent | 06302cb983198bdf6b984510d24673f4d0f49a98 (diff) | |
| download | rust-ad17e0c277b74a33aa8a20f4e66627260bc87232.tar.gz rust-ad17e0c277b74a33aa8a20f4e66627260bc87232.zip | |
Rollup merge of #35794 - cantino:fix-typo, r=apasel422
Fix minor typo Minor typo in the book.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/closures.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/closures.md b/src/doc/book/closures.md index d332cac7d8d..3ed85c1a90b 100644 --- a/src/doc/book/closures.md +++ b/src/doc/book/closures.md @@ -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 |
