fix comment regarding tryCatch signature

This commit is contained in:
Xavier 2020-12-02 16:47:48 +01:00
parent 7500ab98a0
commit 24888d84f8

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 // HINT: TaskEither has a special constructor to transform a Promise<T> into
// a TaskEither<Error, T>: // a TaskEither<Error, T>:
// - `TaskEither.tryCatch(onReject: err => leftValue, onResolve: val => rightValue)(promise)` // - `TaskEither.tryCatch(f: () => promise, onReject: reason => leftValue)`
export const asyncSafeDivideWithError: ( export const asyncSafeDivideWithError: (
a: number, a: number,