Skip to content

Commit

Permalink
change wording for 8.2 for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
chief10 committed Mar 1, 2016
1 parent 7684892 commit 607ad01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 607ad01

Please sign in to comment.