Skip to content

Commit 0b82958

Browse files
author
Tomek Wiszniewski
committed
Fix typo
1 parent e103f6f commit 0b82958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,13 +682,13 @@ Other Style Guides
682682
));
683683

684684
// bad
685-
[1, 2, 3].reduce(x => {
685+
[1, 2, 3].map(x => {
686686
const y = x + 1;
687687
return x * y;
688688
});
689689

690690
// good
691-
[1, 2, 3].reduce((x) => {
691+
[1, 2, 3].map((x) => {
692692
const y = x + 1;
693693
return x * y;
694694
});

0 commit comments

Comments
 (0)