From 3c1e41a6ea569d833096cb40c7d606135e4850b4 Mon Sep 17 00:00:00 2001 From: Yannick Heiber Date: Sat, 22 Feb 2020 14:38:28 +0100 Subject: [PATCH] Fix doc examples for Ior.map --- core/src/main/scala/cats/data/Ior.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/scala/cats/data/Ior.scala b/core/src/main/scala/cats/data/Ior.scala index bd8247e45c..6404160aae 100644 --- a/core/src/main/scala/cats/data/Ior.scala +++ b/core/src/main/scala/cats/data/Ior.scala @@ -507,14 +507,14 @@ sealed abstract class Ior[+A, +B] extends Product with Serializable { * scala> import cats.data.Ior * scala> import cats.implicits._ * - * scala> "abc".leftIor[Int].bimap(_.length, _ * 2) - * res0: Ior[Int, Int] = Left(3) + * scala> "abc".leftIor[Int].map(_ * 2) + * res0: Ior[String, Int] = Left(abc) * - * scala> 123.rightIor[String].bimap(_.length, _ * 2) - * res1: Ior[Int, Int] = Right(246) + * scala> 123.rightIor[String].map(_ * 2) + * res1: Ior[String, Int] = Right(246) * - * scala> Ior.Both("abc", 123).bimap(_.length, _ * 2) - * res2: Ior[Int, Int] = Both(3,246) + * scala> Ior.Both("abc", 123).map(_ * 2) + * res2: Ior[String, Int] = Both(abc,246) * }}} */ final def map[D](f: B => D): A Ior D = bimap(identity, f)