fix typo in futures.rst (#21536)
This commit is contained in:
parent
f8f8828451
commit
ddb2b5cd28
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue