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 99ee8e5 commit 669d2ecCopy full SHA for 669d2ec
src/fn/closures.md
@@ -1,9 +1,9 @@
1
# Closures
2
3
Closures are functions that can capture the enclosing environment. For
4
-example, a closure that captures the x variable:
+example, a closure that captures the `x` variable:
5
6
-```Rust
+```rust
7
|val| val + x
8
```
9
0 commit comments