diff --git a/core/src/main/scala/cats/data/Kleisli.scala b/core/src/main/scala/cats/data/Kleisli.scala index 27fbb2bef4..63bbf45012 100644 --- a/core/src/main/scala/cats/data/Kleisli.scala +++ b/core/src/main/scala/cats/data/Kleisli.scala @@ -161,12 +161,12 @@ object Kleisli * scala> val b: KOI[Either[Char, Char]] = Kleisli[Option, Int, Either[Char, Char]](f _) * scala> val nt: Kleisli[Option, Int, ?] ~> Option = Kleisli.applyK[Option, Int](1) * scala> nt(b) - * res0: Option[Either[Char, Char]] = Some(Right('n')) + * res0: Option[Either[Char, Char]] = Some(Right(n)) * * scala> type EKOIC[A] = EitherT[KOI, Char, A] * scala> val c: EKOIC[Char] = EitherT[KOI, Char, Char](b) * scala> c.mapK(nt).value - * res1: Option[Either[Char, Char]] = Some(Right('n')) + * res1: Option[Either[Char, Char]] = Some(Right(n)) * * scala> val ntz = Kleisli.applyK[Option, Int](0) * scala> c.mapK(ntz).value diff --git a/core/src/main/scala/cats/syntax/foldable.scala b/core/src/main/scala/cats/syntax/foldable.scala index 51ba04469d..27a41812d4 100644 --- a/core/src/main/scala/cats/syntax/foldable.scala +++ b/core/src/main/scala/cats/syntax/foldable.scala @@ -252,7 +252,7 @@ final class FoldableOps0[F[_], A](private val fa: F[A]) extends AnyVal { * res0: (List[Int], List[String]) = (List(1, 2, 3, 4),List(value 1, value 2, value 3, value 4)) * `Const`'s second parameter is never instantiated, so we can use an impossible type: * scala> list.partitionBifold(a => Const[Int, Nothing with Any](a)) - * res1: (List[Int], List[Nothing with Any]) = (List(1, 2, 3, 4), List()) + * res1: (List[Int], List[Nothing with Any]) = (List(1, 2, 3, 4),List()) * }}} */ def partitionBifold[H[_, _], B, C]( @@ -271,7 +271,7 @@ final class FoldableOps0[F[_], A](private val fa: F[A]) extends AnyVal { * scala> val list = List(1,2,3,4) * `Const`'s second parameter is never instantiated, so we can use an impossible type: * scala> list.partitionBifoldM(a => Option(Const[Int, Nothing with Any](a))) - * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4), List())) + * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4),List())) * }}} */ def partitionBifoldM[G[_], H[_, _], B, C]( @@ -341,7 +341,7 @@ final class FoldableOps1[F[_]](private val F: Foldable[F]) extends AnyVal { * scala> val list = List(1,2,3,4) * `Const`'s second parameter is never instantiated, so we can use an impossible type: * scala> Foldable[List].partitionBifoldM(list)(a => Option(Const[Int, Nothing with Any](a))) - * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4), List())) + * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4),List())) * }}} */ def partitionBifoldM[G[_], H[_, _], A, B, C](