Skip to content

Commit 75da71e

Browse files
committed
Merge pull request rust-lang#527 from bsansouci/patch-1
Corrected some typos for RFC 114
2 parents 5b115a2 + 938ff6d commit 75da71e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/0114-closures.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ invocation of one of the following traits:
8080
}
8181

8282
trait FnOnce<A,R> {
83-
fn call_once(&self, args: A) -> R;
83+
fn call_once(self, args: A) -> R;
8484
}
8585

8686
Essentially, `a(b, c, d)` becomes sugar for one of the following:
@@ -199,8 +199,8 @@ more programs successfully typecheck.
199199
### By-reference closures
200200

201201
A *by-reference* closure is a convenience form in which values used in
202-
the closure are converted into references before being captured. By
203-
reference closures are always rewritable into by value closures if
202+
the closure are converted into references before being captured.
203+
By-reference closures are always rewritable into by-value closures if
204204
desired, but the rewrite can often be cumbersome and annoying.
205205

206206
Here is a (rather artificial) example of a by-reference closure in
@@ -368,7 +368,7 @@ TBD. pcwalton is working furiously as we speak.
368368

369369
# Unresolved questions
370370

371-
**What if any relationship should there be between the closure
371+
**What relationship should there be between the closure
372372
traits?** On the one hand, there is clearly a relationship between the
373373
traits. For example, given a `FnShare`, one can easily implement
374374
`Fn`:

0 commit comments

Comments
 (0)