Skip to content

Commit 669d2ec

Browse files
committed
Highlight a variable and a code block
This PR highlights a variable and a code block in closures.md.
1 parent 99ee8e5 commit 669d2ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fn/closures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Closures
22

33
Closures are functions that can capture the enclosing environment. For
4-
example, a closure that captures the x variable:
4+
example, a closure that captures the `x` variable:
55

6-
```Rust
6+
```rust
77
|val| val + x
88
```
99

0 commit comments

Comments
 (0)