Skip to content

Commit c4a3476

Browse files
committed
Code highlight a variable
Follow up rust-lang/rust-by-example#1530.
1 parent 8942ab0 commit c4a3476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fn/closures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<!--
77
Closures are functions that can capture the enclosing environment. For
8-
example, a closure that captures the x variable:
8+
example, a closure that captures the `x` variable:
99
-->
10-
Rustにおけるクロージャは、その外側の環境を捕捉した関数のことです。例えば、次のコードは変数xを捕捉したクロージャです
10+
Rustにおけるクロージャは、その外側の環境を捕捉した関数のことです。例えば、次のコードは変数`x`を捕捉したクロージャです
1111

1212
```Rust
1313
|val| val + x

0 commit comments

Comments
 (0)