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 +```