Skip to content

Commit 0f31b08

Browse files
benluobishabosha
andauthored
Update _overviews/scala3-book/taste-modeling.md
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
1 parent fecfca7 commit 0f31b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/taste-modeling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Similarly, here’s a `Cat` class that implements those same traits while also o
9696
{% tabs traits-override class=tabs-scala-version %}
9797
{% tab 'Scala 2' for=traits-override %}
9898
```scala
99-
class Cat(name: String) extends Speaker, TailWagger, Runner {
99+
class Cat(name: String) extends Speaker with TailWagger with Runner {
100100
def speak(): String = "Meow"
101101
override def startRunning(): Unit = println("Yeah ... I don’t run")
102102
override def stopRunning(): Unit = println("No need to stop")

0 commit comments

Comments
 (0)