Merge pull request #1 from inato/improves-tryCatch-comment

fix comment regarding tryCatch signature
This commit is contained in:
Xavier Lefèvre 2020-12-03 11:41:42 +01:00 committed by GitHub
commit 7c264c8f29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ export const asyncDivide = async (a: number, b: number) => {
//
// HINT: TaskEither has a special constructor to transform a Promise<T> into
// a TaskEither<Error, T>:
// - `TaskEither.tryCatch(onReject: err => leftValue, onResolve: val => rightValue)(promise)`
// - `TaskEither.tryCatch(f: () => promise, onReject: reason => leftValue)`
export const asyncSafeDivideWithError: (
a: number,