change wording for 8.2 for consistency

This commit is contained in:
chief10
2016-03-01 15:28:10 -06:00
parent 7684892951
commit 607ad012ee

View File

@@ -759,15 +759,15 @@ Other Style Guides
> Why not? If you plan on returning an object.
```javascript
// good
[1, 2, 3].map(number => `A string containing the ${number}.`);
// bad
[1, 2, 3].map(number => {
const nextNumber = number + 1;
`A string containing the ${nextNumber}.`;
});
// good
[1, 2, 3].map(number => `A string containing the ${number}.`);
// good
[1, 2, 3].map((number) => {
const nextNumber = number + 1;