style: [skip ci] lint code snippets in md (#5379)

This commit is contained in:
Sven SAULEAU
2017-02-25 18:19:29 +01:00
committed by Henry Zhu
parent 6614a63b3b
commit eb9d699ce9
14 changed files with 77 additions and 38 deletions

View File

@@ -25,13 +25,13 @@ When your supported environments don't support certain features natively, it wil
```js
// ES2015 arrow function
[1,2,3].map(n => n + 1);
[1, 2, 3].map((n) => n + 1);
```
**Out**
```js
[1,2,3].map(function(n) {
[1, 2, 3].map(function(n) {
return n + 1;
});
```