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 +