Skip to content

Commit 6ef45d4

Browse files
ziishanedljharb
authored andcommitted
[guide] make "good" example match "bad" example more closely
1 parent 96f95fa commit 6ef45d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ Other Style Guides
963963
});
964964

965965
// good
966-
[1, 2, 3].map(number => `A string containing the ${number}.`);
966+
[1, 2, 3].map(number => `A string containing the ${number + 1}.`);
967967

968968
// good
969969
[1, 2, 3].map((number) => {

0 commit comments

Comments
 (0)