From e3c336de614566b852493b8b5df8b48dd5b55161 Mon Sep 17 00:00:00 2001 From: Yubao Liu Date: Sat, 27 Jan 2024 20:31:22 +0800 Subject: [PATCH] Fix syntax error on Scala 3.3.1 --- _overviews/scala3-book/scala-for-java-devs.md | 4 ++-- _zh-cn/overviews/scala3-book/scala-for-java-devs.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_overviews/scala3-book/scala-for-java-devs.md b/_overviews/scala3-book/scala-for-java-devs.md index 4a1db9de2..d7d921b06 100644 --- a/_overviews/scala3-book/scala-for-java-devs.md +++ b/_overviews/scala3-book/scala-for-java-devs.md @@ -513,8 +513,8 @@ These interfaces and traits have concrete, implemented methods (default methods)

// mix in the traits as DavidBanner
// is created -
val hulk = new DavidBanner with Big, -
  Angry, Green +
val hulk = new DavidBanner with Big with Angry with Green + diff --git a/_zh-cn/overviews/scala3-book/scala-for-java-devs.md b/_zh-cn/overviews/scala3-book/scala-for-java-devs.md index c0072a95d..918c1779a 100644 --- a/_zh-cn/overviews/scala3-book/scala-for-java-devs.md +++ b/_zh-cn/overviews/scala3-book/scala-for-java-devs.md @@ -499,8 +499,8 @@ Scala不遵循JavaBeans标准,因此我们在这里展示的Java代码

// mix in the traits as DavidBanner
// is created -
val hulk = new DavidBanner with Big, -
  Angry, Green +
val hulk = new DavidBanner with Big with Angry with Green +