Skip to content

Commit

Permalink
clarify to Monad ifM example (#1546)
Browse files Browse the repository at this point in the history
I found this section pretty confusing, but cleared up my misunderstanding quickly in the console.
added param names per suggestions on PR.
  • Loading branch information
sullivan- authored and peterneyens committed Mar 3, 2017
1 parent e28f9f3 commit ecdd27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/tut/typeclasses/monad.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ statement into the monadic context.
```tut:book
import cats.implicits._
Monad[List].ifM(List(true, false, true))(List(1, 2), List(3, 4))
Monad[List].ifM(List(true, false, true))(ifTrue = List(1, 2), ifFalse = List(3, 4))
```

### Composition
Expand Down

0 comments on commit ecdd27f

Please sign in to comment.