Skip to content

Commit d3b3a6f

Browse files
elfacu0jethrolarson
authored andcommitted
Change semicolon position to match other examples
Similar cases in documentation start with ";[", as code style suggests
1 parent e29c470 commit d3b3a6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ john.age + five === ({name: 'John', age: 30}).age + (5)
423423
A [curried](#currying) function that ignores its second argument:
424424

425425
```js
426-
const constant = a => () => a;
426+
const constant = a => () => a
427427

428-
[1, 2].map(constant(0)) // => [0, 0]
428+
;[1, 2].map(constant(0)) // => [0, 0]
429429
```
430430

431431
### Constant Functor
@@ -1043,9 +1043,9 @@ A **function** `f :: A => B` is an expression - often called arrow or lambda exp
10431043

10441044
```js
10451045
// times2 :: Number -> Number
1046-
const times2 = n => n * 2;
1046+
const times2 = n => n * 2
10471047

1048-
[1, 2, 3].map(times2) // [2, 4, 6]
1048+
;[1, 2, 3].map(times2) // [2, 4, 6]
10491049
```
10501050

10511051
## Partial function

0 commit comments

Comments
 (0)