Skip to content

Commit

Permalink
Code highlight a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Apr 9, 2022
1 parent 8942ab0 commit c4a3476
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
Expand Up @@ -5,9 +5,9 @@

<!--
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におけるクロージャは、その外側の環境を捕捉した関数のことです。例えば、次のコードは変数xを捕捉したクロージャです
Rustにおけるクロージャは、その外側の環境を捕捉した関数のことです。例えば、次のコードは変数`x`を捕捉したクロージャです

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

0 comments on commit c4a3476

Please sign in to comment.