fix type in readme: bind -> chain

This commit is contained in:
Rowan 2025-03-31 05:27:48 -05:00
parent 448dcf7856
commit 27e00bbc11

View file

@ -14,9 +14,9 @@ isnt.isSome() // false
const result = Result.of('3:41am') const result = Result.of('3:41am')
result.isOk() // true result.isOk() // true
result.bind(() => Err(new Error(-Infinity))) result.chain(() => Err(new Error(-Infinity)))
.map(_x => '4:10am') .map(_x => '4:10am')
.bind(Ok) .chain(Ok)
result.isErr() // true result.isErr() // true