Skip to content

Commit a0ddbc1

Browse files
committed
Fixes docs
1 parent 3b30788 commit a0ddbc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/pages/monad.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ monads like ``Failure`` and ``Nothing``:
8282
- :func:`Monad.ebind <dry_monads.primitives.monad.Monad.ebind>` the opposite
8383
of ``bind`` method that works only when monad is failed
8484

85+
``efmap`` can be used to fix some fixable errors
86+
during the pipeline execution:
87+
8588
.. code:: python
8689
8790
from dry_monads.either import Failure
@@ -92,8 +95,8 @@ monads like ``Failure`` and ``Nothing``:
9295
Failure(1).efmap(double)
9396
# => Will be equal to Success(2.0)
9497
95-
So, ``efmap`` can be used to fix some fixable errors
96-
during the pipeline execution.
98+
``ebind`` can return any monad you want.
99+
It can also fix your flow and get on the right track again:
97100

98101
.. code:: python
99102
@@ -107,9 +110,6 @@ during the pipeline execution.
107110
Failure(ZeroDivisionError).ebind(fix)
108111
# => Will be equal to Success(0)
109112
110-
``ebind`` can return any monad you want.
111-
It can also be fixed to get your flow on the right track again.
112-
113113
Unwrapping values
114114
~~~~~~~~~~~~~~~~~
115115

0 commit comments

Comments
 (0)