From 002bfc2dd00daa16f015755d4215355ea61ba069 Mon Sep 17 00:00:00 2001 From: Zhenhao Li Date: Thu, 17 May 2018 17:06:01 +0200 Subject: [PATCH] updated trait ComposedFoldable in Composed.scala (#2258) changed variable names in trait ComposedFoldable[F[_], G[_]] for better readability --- core/src/main/scala/cats/Composed.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/Composed.scala b/core/src/main/scala/cats/Composed.scala index dca29899bf..8c21b76771 100644 --- a/core/src/main/scala/cats/Composed.scala +++ b/core/src/main/scala/cats/Composed.scala @@ -64,7 +64,7 @@ private[cats] trait ComposedFoldable[F[_], G[_]] extends Foldable[λ[α => F[G[ def G: Foldable[G] override def foldLeft[A, B](fga: F[G[A]], b: B)(f: (B, A) => B): B = - F.foldLeft(fga, b)((b, a) => G.foldLeft(a, b)(f)) + F.foldLeft(fga, b)((b, ga) => G.foldLeft(ga, b)(f)) override def foldRight[A, B](fga: F[G[A]], lb: Eval[B])(f: (A, Eval[B]) => Eval[B]): Eval[B] = F.foldRight(fga, lb)((ga, lb) => G.foldRight(ga, lb)(f))