[Docs] update 8.3 to fix conflict with 6.2 (fixes #1058)

This commit is contained in:
Guillaume Verbal
2016-09-12 12:18:59 +08:00
committed by Jordan Harband
parent e59376f625
commit 7da28d43ad

View File

@@ -849,15 +849,18 @@ Other Style Guides
```js
// bad
[1, 2, 3].map(number => 'As time went by, the string containing the ' +
`${number} became much longer. So we needed to break it over multiple ` +
'lines.'
['get', 'post', 'put'].map(number => Object.prototype.hasOwnProperty.call(
httpMagicObjectWithAVeryLongName,
httpMethod
)
);
// good
[1, 2, 3].map(number => (
`As time went by, the string containing the ${number} became much ` +
'longer. So we needed to break it over multiple lines.'
['get', 'post', 'put'].map(number => (
Object.prototype.hasOwnProperty.call(
httpMagicObjectWithAVeryLongName,
httpMethod
)
));
```