Skip to content

Commit

Permalink
Code highlight a variable
Browse files Browse the repository at this point in the history
This PR code highlights a variable in closures.md.
  • Loading branch information
koic committed Apr 6, 2022
1 parent 99ee8e5 commit 46126d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn/closures.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Closures

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

```Rust
|val| val + x
Expand Down

0 comments on commit 46126d1

Please sign in to comment.