fix type in readme: bind -> chain
This commit is contained in:
parent
448dcf7856
commit
27e00bbc11
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ isnt.isSome() // false
|
|||
const result = Result.of('3:41am')
|
||||
result.isOk() // true
|
||||
|
||||
result.bind(() => Err(new Error(-Infinity)))
|
||||
result.chain(() => Err(new Error(-Infinity)))
|
||||
.map(_x => '4:10am')
|
||||
.bind(Ok)
|
||||
.chain(Ok)
|
||||
|
||||
result.isErr() // true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue