From 4638f834e33c3cd55d47d44e359228b376fa4fdd Mon Sep 17 00:00:00 2001 From: Amir Moulavi Date: Fri, 21 Oct 2011 16:14:37 +0200 Subject: [PATCH] A typo is corrected in Future example Scala code --- akka-docs/scala/futures.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-docs/scala/futures.rst b/akka-docs/scala/futures.rst index 622c26f778..ba7b8bb73e 100644 --- a/akka-docs/scala/futures.rst +++ b/akka-docs/scala/futures.rst @@ -91,7 +91,7 @@ The ``map`` method is fine if we are modifying a single ``Future``, but if 2 or } } - val result = f2.get().get() + val result = f3.get().get() The ``get`` method had to be used twice because ``f3`` is a ``Future[Future[Int]]`` instead of the desired ``Future[Int]``. Instead, the ``flatMap`` method should be used: @@ -111,7 +111,7 @@ The ``get`` method had to be used twice because ``f3`` is a ``Future[Future[Int] } } - val result = f2.get() + val result = f3.get() For Comprehensions ^^^^^^^^^^^^^^^^^^