Skip to content

Commit 607ad01

Browse files
committed
change wording for 8.2 for consistency
1 parent 7684892 commit 607ad01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,15 +759,15 @@ Other Style Guides
759759
> Why not? If you plan on returning an object.
760760
761761
```javascript
762-
// good
763-
[1, 2, 3].map(number => `A string containing the ${number}.`);
764-
765762
// bad
766763
[1, 2, 3].map(number => {
767764
const nextNumber = number + 1;
768765
`A string containing the ${nextNumber}.`;
769766
});
770767

768+
// good
769+
[1, 2, 3].map(number => `A string containing the ${number}.`);
770+
771771
// good
772772
[1, 2, 3].map((number) => {
773773
const nextNumber = number + 1;

0 commit comments

Comments
 (0)