From bb0bd653a4b238846623fef6e89268470812b45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Mazoni?= Date: Thu, 12 Sep 2024 18:23:21 +0930 Subject: [PATCH] Minor improvement to Future.mapErrorToResult Just proposing a minor improvement to the fn docs --- docs/docs/future-result.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/future-result.md b/docs/docs/future-result.md index ac11d52..86c429b 100644 --- a/docs/docs/future-result.md +++ b/docs/docs/future-result.md @@ -43,7 +43,7 @@ Future>.mapErrorToResult( ): Future> ``` -Takes a `Future>` and a `f` function taking `Error` and returning `Result` and returns a new `Future>` +Takes a `Future>` and a `f` function taking `Error` and returning `Result` and returns a new `Future>` ```ts title="Examples" Future.value(Result.Error(3)).mapErrorToResult((ok) => {