]> git.lizzy.rs Git - rust.git/commitdiff
Fix minor typo
authorAndrew Cantino <cantino@users.noreply.github.com>
Thu, 18 Aug 2016 19:06:05 +0000 (15:06 -0400)
committerAndrew Cantino <cantino@users.noreply.github.com>
Thu, 18 Aug 2016 19:06:05 +0000 (15:06 -0400)
src/doc/book/closures.md

index d332cac7d8d16c76bed6b7bad805c1c389239feb..3ed85c1a90b692e75105e50b0ae25c41f34614bf 100644 (file)
@@ -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