aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Welsh <noel@untyped.com>2017-02-16 22:46:09 +0000
committerNoel Welsh <noel@untyped.com>2017-02-16 22:46:09 +0000
commit274ab85d635b98bce7b89bff330f3e8bd44678f5 (patch)
tree9d0af4726de7d54d0fcd293b61b8eee917413fa7
parent6e10848e9f558e5599e493ee2929284d1cb73fc0 (diff)
downloadcreative-scala-template-274ab85d635b98bce7b89bff330f3e8bd44678f5.tar.gz
creative-scala-template-274ab85d635b98bce7b89bff330f3e8bd44678f5.tar.bz2
creative-scala-template-274ab85d635b98bce7b89bff330f3e8bd44678f5.zip
New style code
Use of constructors directly is deprecated in favour of "smart constructors" on the companion object
-rw-r--r--src/main/scala/Example.scala2
1 files changed, 1 insertions, 1 deletions
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)
}