Skip to content

Commit ac46efc

Browse files
authored
Update README.md
1 parent 313c205 commit ac46efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The result type parameter (`R` in `Monad<M, R`) is usually inferred, and the com
139139
val m = doReturning(MonadListReturn) {
140140
for (i in 1..10)
141141
bind(monadListOf(0, 0))
142-
returns(0)
142+
returns(0)
143143
} as MonadList
144144
145145
One would expect 1024 items here, but the result only contains 11! That's because `i` is mutable and is shared between all the calls that `bind` makes.

0 commit comments

Comments
 (0)