diff --git a/akka-docs/rst/java/futures.rst b/akka-docs/rst/java/futures.rst index 0415bdbffa..ea39963a45 100644 --- a/akka-docs/rst/java/futures.rst +++ b/akka-docs/rst/java/futures.rst @@ -187,7 +187,7 @@ Callbacks --------- Sometimes you just want to listen to a ``Future`` being completed, and react to that not by creating a new Future, but by side-effecting. -For this Scala supports ``onComplete``, ``onSuccess`` and ``onFailure``, of which the latter two are specializations of the first. +For this Scala supports ``onComplete``, ``onSuccess`` and ``onFailure``, of which the last two are specializations of the first. .. includecode:: code/docs/future/FutureDocTest.java :include: onSuccess diff --git a/akka-docs/rst/scala/futures.rst b/akka-docs/rst/scala/futures.rst index 52a665f46e..705e620708 100644 --- a/akka-docs/rst/scala/futures.rst +++ b/akka-docs/rst/scala/futures.rst @@ -227,7 +227,7 @@ Callbacks --------- Sometimes you just want to listen to a ``Future`` being completed, and react to that not by creating a new ``Future``, but by side-effecting. -For this Scala supports ``onComplete``, ``onSuccess`` and ``onFailure``, of which the latter two are specializations of the first. +For this Scala supports ``onComplete``, ``onSuccess`` and ``onFailure``, of which the last two are specializations of the first. .. includecode:: code/docs/future/FutureDocSpec.scala :include: onSuccess