diff --git a/docs/rules/jsx-key.md b/docs/rules/jsx-key.md
index d94a7bb9f1..75b5b5c960 100644
--- a/docs/rules/jsx-key.md
+++ b/docs/rules/jsx-key.md
@@ -10,7 +10,7 @@ The following patterns are considered warnings:
```jsx
[, , ];
-data.map(x => x);
+data.map(x => {x});
```
The following patterns are **not** considered warnings:
@@ -18,7 +18,7 @@ The following patterns are **not** considered warnings:
```jsx
[, , ];
-data.map((x, i) => x);
+data.map((x, i) => {x});
```
## When not to use