Skip to content

Commit 687492d

Browse files
authored
Merge pull request #1 from ajdunlap/patch-2
Minor grammar fix
2 parents 01a6392 + eaf2225 commit 687492d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ch13-00-functional-features.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
### What is a closure
66

77
In programming languages, a closure is a lot like a function. Like a function, closures contain code
8-
that is executed when the closure is called. The main difference, besides syntax, from functions is
9-
that closures have *capture*. What this means is that closures can use variables in its surrounding
10-
scope. Consider the following code:
8+
that is executed when the closure is called. The main difference, besides syntax, between closures
9+
and functions is that closures have *capture*. What this means is that a closure can use variables
10+
in its surrounding scope. Consider the following code:
1111

1212
```rust,ignore
1313
fn main() {

0 commit comments

Comments
 (0)