File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ invocation of one of the following traits:
80
80
}
81
81
82
82
trait FnOnce<A,R> {
83
- fn call_once(& self, args: A) -> R;
83
+ fn call_once(self, args: A) -> R;
84
84
}
85
85
86
86
Essentially, ` a(b, c, d) ` becomes sugar for one of the following:
@@ -199,8 +199,8 @@ more programs successfully typecheck.
199
199
### By-reference closures
200
200
201
201
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
204
204
desired, but the rewrite can often be cumbersome and annoying.
205
205
206
206
Here is a (rather artificial) example of a by-reference closure in
@@ -368,7 +368,7 @@ TBD. pcwalton is working furiously as we speak.
368
368
369
369
# Unresolved questions
370
370
371
- ** What if any relationship should there be between the closure
371
+ ** What relationship should there be between the closure
372
372
traits?** On the one hand, there is clearly a relationship between the
373
373
traits. For example, given a ` FnShare ` , one can easily implement
374
374
` Fn ` :
You can’t perform that action at this time.
0 commit comments