Minor grammar fix

This commit is contained in:
Alexander Dunlap 2017-01-01 16:01:52 -08:00 committed by Carol (Nichols || Goulding)
parent 2be0bfdeca
commit 72dec3166b

View File

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