Skip to content

Commit 5550b63

Browse files
SupasinTatiyanupanwongakarnokd
authored andcommitted
Fix JavaDocs of Single.doOnTerminate refer to onComplete notification (#6565)
1 parent 5c83b50 commit 5550b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/reactivex/Single.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,13 +2501,13 @@ public final Single<T> doOnSubscribe(final Consumer<? super Disposable> onSubscr
25012501
* <p>
25022502
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnTerminate.png" alt="">
25032503
* <p>
2504-
* This differs from {@code doAfterTerminate} in that this happens <em>before</em> the {@code onComplete} or
2504+
* This differs from {@code doAfterTerminate} in that this happens <em>before</em> the {@code onSuccess} or
25052505
* {@code onError} notification.
25062506
* <dl>
25072507
* <dt><b>Scheduler:</b></dt>
25082508
* <dd>{@code doOnTerminate} does not operate by default on a particular {@link Scheduler}.</dd>
25092509
* </dl>
2510-
* @param onTerminate the action to invoke when the consumer calls {@code onComplete} or {@code onError}
2510+
* @param onTerminate the action to invoke when the consumer calls {@code onSuccess} or {@code onError}
25112511
* @return the new Single instance
25122512
* @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a>
25132513
* @see #doOnTerminate(Action)

0 commit comments

Comments
 (0)