Skip to content

Commit

Permalink
Merge pull request #1530 from koic/code_highlight_a_variable
Browse files Browse the repository at this point in the history
Code highlight a variable
  • Loading branch information
marioidival authored Apr 8, 2022
2 parents 94048cf + 46126d1 commit c2a98d9
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 c2a98d9

Please sign in to comment.