[guide] make "good" example match "bad" example more closely

This commit is contained in:
Zeeshan Ahmad
2019-02-06 14:09:18 +04:00
committed by Jordan Harband
parent 96f95fa35e
commit 6ef45d4bab

View File

@@ -963,7 +963,7 @@ Other Style Guides
});
// good
[1, 2, 3].map(number => `A string containing the ${number}.`);
[1, 2, 3].map(number => `A string containing the ${number + 1}.`);
// good
[1, 2, 3].map((number) => {