Skip to content

Commit 01800ca

Browse files
committed
Fixes docs
1 parent 5db1009 commit 01800ca

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/pages/container.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ to use containers with `pure functions <https://en.wikipedia.org/wiki/Pure_funct
115115
result = Success(1).map(double)
116116
# => Will be equal to Success(2)
117117
118+
Note::
119+
120+
All containers support these methods.
121+
118122
Returning execution to the right track
119123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120124

@@ -156,6 +160,11 @@ It can also fix your flow and get on the successful track again:
156160
Failure(ZeroDivisionError).rescue(fix)
157161
# => Will be equal to Success(0)
158162
163+
Note::
164+
165+
Not all containers support these methods.
166+
IO cannot be fixed or rescued.
167+
159168
Unwrapping values
160169
~~~~~~~~~~~~~~~~~
161170

@@ -200,6 +209,11 @@ to unwrap the failed state:
200209
Be careful, since this method will raise an exception
201210
when you try to ``failure`` a successful container.
202211

212+
Note::
213+
214+
Not all containers support these methods.
215+
IO cannot be unwrapped.
216+
203217

204218
Immutability
205219
------------

docs/pages/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ IO
55

66
Why? Let me illustrate it with the example.
77

8-
IO container
9-
------------
8+
IO marker
9+
---------
1010

1111
Imagine we have this beautiful pure function:
1212

0 commit comments

Comments
 (0)