diff options
author | Noel Welsh <noel@untyped.com> | 2017-02-16 22:46:09 +0000 |
---|---|---|
committer | Noel Welsh <noel@untyped.com> | 2017-02-16 22:46:09 +0000 |
commit | 274ab85d635b98bce7b89bff330f3e8bd44678f5 (patch) | |
tree | 9d0af4726de7d54d0fcd293b61b8eee917413fa7 /src/main/scala/Example.scala | |
parent | 6e10848e9f558e5599e493ee2929284d1cb73fc0 (diff) | |
download | creative-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
Diffstat (limited to 'src/main/scala/Example.scala')
-rw-r--r-- | src/main/scala/Example.scala | 2 |
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) } |