Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tk3y authored Jan 26, 2017
1 parent 313c205 commit ac46efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The result type parameter (`R` in `Monad<M, R`) is usually inferred, and the com
val m = doReturning(MonadListReturn) {
for (i in 1..10)
bind(monadListOf(0, 0))
returns(0)
returns(0)
} as MonadList
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.
Expand Down

0 comments on commit ac46efc

Please sign in to comment.