From 02c6ead3eff5c391c0ef78f11f3b312cbcbedf4e Mon Sep 17 00:00:00 2001 From: Qiuyang Nie Date: Wed, 4 Dec 2019 10:19:46 +0000 Subject: [PATCH] Replace the deprecated code `warning: there was one deprecation warning (since 2.13.0);` --- _overviews/scala-book/traits-abstract-mixins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala-book/traits-abstract-mixins.md b/_overviews/scala-book/traits-abstract-mixins.md index 7679eb4fa3..0b25612432 100644 --- a/_overviews/scala-book/traits-abstract-mixins.md +++ b/_overviews/scala-book/traits-abstract-mixins.md @@ -22,7 +22,7 @@ To demonstrate this, here’s a Scala trait that has a concrete method named `sp ```scala trait Pet { - def speak { println("Yo") } // concrete implementation of a speak method + def speak = println("Yo") // concrete implementation of a speak method def comeToMaster(): Unit // abstract } ```