Skip to content

Commit

Permalink
fix scalastyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang authored Nov 16, 2017
1 parent 9df4f36 commit b609796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/Foldable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ import simulacrum.typeclass
* {{{
* scala> import cats.implicits._
* scala> val numbers = List(2,4,5,6,8,10)
* scala> numbers.collectFst(i => if(i % 2 == 1) Some(i.toDouble / 2d) else None)
* scala> numbers.collectFst(i => if (i % 2 == 1) Some(i.toDouble / 2d) else None)
* res0: Option[Double] = Some(2.5)
* scala> List(2, 4, 6).collectFst(i => if(i % 2 == 1) Some(i.toDouble / 2d) else None)
* scala> List(2, 4, 6).collectFst(i => if (i % 2 == 1) Some(i.toDouble / 2d) else None)
* res1: Option[Double] = None
* }}}
*/
Expand Down

0 comments on commit b609796

Please sign in to comment.