From d5f74ccb8784c9bfec380c3995d3a285f8cba32c Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Wed, 11 May 2022 17:29:11 -0400 Subject: [PATCH] Fix typo --- guide/src/failures.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/src/failures.md b/guide/src/failures.md index 7dfceec..a97971d 100644 --- a/guide/src/failures.md +++ b/guide/src/failures.md @@ -476,7 +476,7 @@ functions and methods seen above but they deserve being seeing in details: ### `attempt` : failures as values. -The method `attemp` transform an `IO[R,E,A]` into +The method `attempt` transform an `IO[R,E,A]` into `IO[R,None,Result[E,A]]`. If the original computation is successful, the transformed one returns an `Ok(Ok(...))`. If the original computation fails on some errors, the transformed one returns `Ok(Errors(...))`. @@ -563,4 +563,4 @@ Ok(success=5) Ok(success=12) >>> io.panic(Exception("BOOM!")).on_failure(lambda x: io.pure(12)).run(None) Ok(success=12) -``` \ No newline at end of file +```