From 3d0d70206ae443b66568dc9ac34db218eb44ec7c Mon Sep 17 00:00:00 2001 From: isolomein-naumen Date: Fri, 27 Oct 2023 21:58:35 +0300 Subject: [PATCH] fix --- lectures/scala_lecture_5.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/scala_lecture_5.html b/lectures/scala_lecture_5.html index 4c69602e..af2d42df 100644 --- a/lectures/scala_lecture_5.html +++ b/lectures/scala_lecture_5.html @@ -343,7 +343,7 @@

Monoid (моноид)

} implicit val doubleMonoid: Monoid[Double] = new Monoid[Double] { - override def empty: Double = 0 + override def empty: Double = 1 override def combine(x: Double, y: Double): Double = x * y }