summaryrefslogtreecommitdiff
path: root/docs/examples/futures.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-05-16 13:30:30 +0000
committermichelou <michelou@epfl.ch>2007-05-16 13:30:30 +0000
commit1f65685c9626929f3e6d7b81225f57fd4e68438c (patch)
tree54d3462ca86d36545ab6ef946a1095a0f15ac38f /docs/examples/futures.scala
parent73b2db5db4fc7316467b51299994b47065bde74d (diff)
downloadscala-1f65685c9626929f3e6d7b81225f57fd4e68438c.tar.gz
scala-1f65685c9626929f3e6d7b81225f57fd4e68438c.tar.bz2
scala-1f65685c9626929f3e6d7b81225f57fd4e68438c.zip
updated examples
Diffstat (limited to 'docs/examples/futures.scala')
-rw-r--r--docs/examples/futures.scala6
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
+}