From 274ab85d635b98bce7b89bff330f3e8bd44678f5 Mon Sep 17 00:00:00 2001 From: Noel Welsh Date: Thu, 16 Feb 2017 22:46:09 +0000 Subject: New style code Use of constructors directly is deprecated in favour of "smart constructors" on the companion object --- src/main/scala/Example.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/Example.scala b/src/main/scala/Example.scala index faa158a..5226246 100644 --- a/src/main/scala/Example.scala +++ b/src/main/scala/Example.scala @@ -8,5 +8,5 @@ import doodle.backend.StandardInterpreter._ // // Example.image.draw object Example { - val image = Circle(10) on Circle(20) on Circle(30) + val image = circle(10) on circle(20) on circle(30) } -- cgit v1.2.3