Skip to content

Commit

Permalink
Highlight a variable and a code block
Browse files Browse the repository at this point in the history
This PR highlights a variable and a code block in closures.md.
  • Loading branch information
koic committed Apr 6, 2022
1 parent 99ee8e5 commit 669d2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fn/closures.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 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
```rust
|val| val + x
```

Expand Down

0 comments on commit 669d2ec

Please sign in to comment.