guide: function -> closure in explanation of closures
This commit is contained in:
parent
cbacdbc5f3
commit
02d96ac612
@ -4223,7 +4223,7 @@ don't need to declare one. This is different from named functions, which
|
||||
default to returning unit (`()`).
|
||||
|
||||
There's one big difference between a closure and named functions, and it's in
|
||||
the name: a function "closes over its environment." What's that mean? It means
|
||||
the name: a closure "closes over its environment." What's that mean? It means
|
||||
this:
|
||||
|
||||
```{rust}
|
||||
|
Loading…
Reference in New Issue
Block a user