diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-12-29 17:26:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-29 17:26:34 -0800 |
| commit | 2068e1c251c8564ba45d3eba4ae16831350370a2 (patch) | |
| tree | 7c1af6cb41281e42625cdcfd80ff4c2a5f1badb3 /src | |
| parent | 3f65c5d103213e8599100647087e2f972141bbb6 (diff) | |
| parent | 57b53fdd9ef34bf4015b4fd7a202dfa485773c96 (diff) | |
| download | rust-2068e1c251c8564ba45d3eba4ae16831350370a2.tar.gz rust-2068e1c251c8564ba45d3eba4ae16831350370a2.zip | |
Rollup merge of #38662 - agl:patch-2, r=frewsxcv
Use "an" before "i32" (Minor typo fix.) Since the word `i32` starts with a vowel, the indefinite article should use "an", not "a" \[[1](http://www.dictionary.com/browse/an)\]. (Previously there was one instance of "an i32" and two instances of "a i32", so at least something is wrong!) Since I believe that "an" is the correct form, I aligned everything with that.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/closures.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/closures.md b/src/doc/book/closures.md index a3c7333c6be..115fe1f7662 100644 --- a/src/doc/book/closures.md +++ b/src/doc/book/closures.md @@ -283,7 +283,7 @@ fn call_with_one<F>(some_closure: F) -> i32 # some_closure(1) } ``` -We take one parameter, and it has the type `F`. We also return a `i32`. This part +We take one parameter, and it has the type `F`. We also return an `i32`. This part isn’t interesting. The next part is: ```rust @@ -293,7 +293,7 @@ isn’t interesting. The next part is: ``` Because `Fn` is a trait, we can use it as a bound for our generic type. In -this case, our closure takes a `i32` as an argument and returns an `i32`, and +this case, our closure takes an `i32` as an argument and returns an `i32`, and so the generic bound we use is `Fn(i32) -> i32`. There’s one other key point here: because we’re bounding a generic with a |
