diff options
Diffstat (limited to 'docs/examples/futures.scala')
-rw-r--r-- | docs/examples/futures.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/futures.scala b/docs/examples/futures.scala index 79682b5b76..e05b6b330e 100644 --- a/docs/examples/futures.scala +++ b/docs/examples/futures.scala @@ -8,10 +8,10 @@ object futures { def f(x: Int) = x + x def g(x: Int) = x * x - def main(args: Array[String]): Unit = { + def main(args: Array[String]) { val x = future(someLengthyComputation) anotherLengthyComputation val y = f(x()) + g(x()) - Console.println(y) + println(y) } -}
\ No newline at end of file +} |