From 3230b5f9b125676b4cc0c21897a6247e6d12f00a Mon Sep 17 00:00:00 2001 From: Igal Tabachnik Date: Thu, 13 Jun 2019 09:40:33 +0300 Subject: [PATCH] Prod -> Product in Scala snippets too --- src/content/3.7/code/scala/snippet32.scala | 4 ++-- src/content/3.7/code/scala/snippet34.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/3.7/code/scala/snippet32.scala b/src/content/3.7/code/scala/snippet32.scala index c5126f9..b2c5305 100644 --- a/src/content/3.7/code/scala/snippet32.scala +++ b/src/content/3.7/code/scala/snippet32.scala @@ -1,3 +1,3 @@ -def counit[S, A](a: Prod[S, Reader[S, A]]): A = a match { - case Prod((Reader(f), s)) => f(s) +def counit[S, A](a: Product[S, Reader[S, A]]): A = a match { + case Product((Reader(f), s)) => f(s) } \ No newline at end of file diff --git a/src/content/3.7/code/scala/snippet34.scala b/src/content/3.7/code/scala/snippet34.scala index 3917d1d..34001a1 100644 --- a/src/content/3.7/code/scala/snippet34.scala +++ b/src/content/3.7/code/scala/snippet34.scala @@ -1,2 +1,2 @@ -def unit[S, A](a: A): Reader[S, Prod[S, A]] = - Reader(s => Prod((a, s))) \ No newline at end of file +def unit[S, A](a: A): Reader[S, Product[S, A]] = + Reader(s => Product((a, s))) \ No newline at end of file