Skip to content

Commit 46126d1

Browse files
committed
Code highlight a variable
This PR code highlights a variable in closures.md.
1 parent 99ee8e5 commit 46126d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn/closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
```Rust
77
|val| val + x

0 commit comments

Comments
 (0)