fix typo in futures.rst (#21536)

This commit is contained in:
Patrik Nordwall 2016-09-23 18:20:28 +02:00 committed by Johan Andrén
parent f8f8828451
commit ddb2b5cd28
2 changed files with 2 additions and 2 deletions

View file

@ -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