Skip to content

Commit 766f358

Browse files
author
Tomek Wiszniewski
committed
Fix typo
1 parent b54ce43 commit 766f358

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
@@ -763,13 +763,13 @@ Other Style Guides
763763
));
764764

765765
// bad
766-
[1, 2, 3].reduce(x => {
766+
[1, 2, 3].map(x => {
767767
const y = x + 1;
768768
return x * y;
769769
});
770770

771771
// good
772-
[1, 2, 3].reduce((x) => {
772+
[1, 2, 3].map((x) => {
773773
const y = x + 1;
774774
return x * y;
775775
});

0 commit comments

Comments
 (0)