Skip to content

Commit 02c6ead

Browse files
authored
Replace the deprecated code
`warning: there was one deprecation warning (since 2.13.0);`
1 parent 79e937e commit 02c6ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala-book/traits-abstract-mixins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To demonstrate this, here’s a Scala trait that has a concrete method named `sp
2222

2323
```scala
2424
trait Pet {
25-
def speak { println("Yo") } // concrete implementation of a speak method
25+
def speak = println("Yo") // concrete implementation of a speak method
2626
def comeToMaster(): Unit // abstract
2727
}
2828
```

0 commit comments

Comments
 (0)