We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99eafee commit 1886fdaCopy full SHA for 1886fda
src/fn/closures.md
@@ -1,8 +1,8 @@
1
# Closures
2
3
-Closures in Rust, also called lambda expressions or lambdas, are functions that can capture
4
-the enclosing environment. For example, a closure that captures the x
5
-variable:
+Closures are functions that can capture the enclosing environment. For
+example, a closure that captures the x variable:
+
6
```Rust
7
|val| val + x
8
```
0 commit comments