From 24888d84f837b406429184c7512935f46497c1f7 Mon Sep 17 00:00:00 2001 From: Xavier Date: Wed, 2 Dec 2020 16:47:48 +0100 Subject: [PATCH] fix comment regarding tryCatch signature --- src/exo1/exo1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exo1/exo1.ts b/src/exo1/exo1.ts index 3d32ddf..02c5707 100644 --- a/src/exo1/exo1.ts +++ b/src/exo1/exo1.ts @@ -75,7 +75,7 @@ export const asyncDivide = async (a: number, b: number) => { // // HINT: TaskEither has a special constructor to transform a Promise into // a TaskEither: -// - `TaskEither.tryCatch(onReject: err => leftValue, onResolve: val => rightValue)(promise)` +// - `TaskEither.tryCatch(f: () => promise, onReject: reason => leftValue)` export const asyncSafeDivideWithError: ( a: number,