Skip to content

Commit

Permalink
Corrected some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bsansouci committed Dec 15, 2014
1 parent 3436244 commit 938ff6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions text/0114-closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ invocation of one of the following traits:
}

trait FnOnce<A,R> {
fn call_once(&self, args: A) -> R;
fn call_once(self, args: A) -> R;
}

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

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

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

# Unresolved questions

**What if any relationship should there be between the closure
**What relationship should there be between the closure
traits?** On the one hand, there is clearly a relationship between the
traits. For example, given a `FnShare`, one can easily implement
`Fn`:
Expand Down

0 comments on commit 938ff6d

Please sign in to comment.