From 90f21d97261c3fd3c3c7ffff51bf5f324a93da9c Mon Sep 17 00:00:00 2001 From: Kailuo Wang Date: Tue, 5 Dec 2017 15:14:35 -0500 Subject: [PATCH] fix doctest --- core/src/main/scala/cats/MonadError.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/MonadError.scala b/core/src/main/scala/cats/MonadError.scala index 5e37af1fe0..f861f82803 100644 --- a/core/src/main/scala/cats/MonadError.scala +++ b/core/src/main/scala/cats/MonadError.scala @@ -50,7 +50,7 @@ trait MonadError[F[_], E] extends ApplicativeError[F, E] with Monad[F] { * scala> import cats.implicits._ * scala> import scala.util.{Try, Success} * - * scala> val a: Try[Either[Throwable, Int]] = Success(Left(new Exception)) + * scala> val a: Try[Either[Throwable, Int]] = Success(Left(new java.lang.Exception)) * scala> a.rethrow * res0: scala.util.Try[Int] = Failure(java.lang.Exception) *