Skip to content

Commit 0aeadab

Browse files
committed
Add parens around arrow functions
This allows the examples to parse, and not SyntaxError
1 parent 1e9f7bd commit 0aeadab

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
@@ -64,8 +64,8 @@ let person = { score: 25 };
6464

6565
let newScore = person.score
6666
|> double
67-
|> _ => add(7, _)
68-
|> _ => boundScore(0, 100, _);
67+
|> (_ => add(7, _))
68+
|> (_ => boundScore(0, 100, _));
6969

7070
newScore //=> 57
7171

0 commit comments

Comments
 (0)