Skip to content

Commit

Permalink
Merge pull request #3 from kailuowang/SystemFw-feature/rethrow
Browse files Browse the repository at this point in the history
fix doctest
  • Loading branch information
SystemFw authored Dec 5, 2017
2 parents 652ed65 + 90f21d9 commit 19745e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/MonadError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down

0 comments on commit 19745e3

Please sign in to comment.