Skip to content

Commit 58b0014

Browse files
authored
3.x: fix wording in Single javadocs (ReactiveX#6566)
1 parent d35ac97 commit 58b0014

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ public static <T> Flowable<T> mergeDelayError(
13271327
}
13281328

13291329
/**
1330-
* Returns a singleton instance of a never-signalling Single (only calls onSubscribe).
1330+
* Returns a singleton instance of a never-signaling Single (only calls onSubscribe).
13311331
* <p>
13321332
* <img width="640" height="244" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.never.png" alt="">
13331333
* <dl>
@@ -2526,14 +2526,14 @@ public final Single<T> doOnSubscribe(final Consumer<? super Disposable> onSubscr
25262526
* <p>
25272527
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnTerminate.png" alt="">
25282528
* <p>
2529-
* This differs from {@code doAfterTerminate} in that this happens <em>before</em> the {@code onComplete} or
2529+
* This differs from {@code doAfterTerminate} in that this happens <em>before</em> the {@code onSuccess} or
25302530
* {@code onError} notification.
25312531
* <dl>
25322532
* <dt><b>Scheduler:</b></dt>
25332533
* <dd>{@code doOnTerminate} does not operate by default on a particular {@link Scheduler}.</dd>
25342534
* </dl>
25352535
* <p>History: 2.2.7 - experimental
2536-
* @param onTerminate the action to invoke when the consumer calls {@code onComplete} or {@code onError}
2536+
* @param onTerminate the action to invoke when the consumer calls {@code onSuccess} or {@code onError}
25372537
* @return the new Single instance
25382538
* @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a>
25392539
* @see #doOnTerminate(Action)
@@ -3471,12 +3471,12 @@ public final Single<T> retry(Predicate<? super Throwable> predicate) {
34713471
* Re-subscribes to the current Single if and when the Publisher returned by the handler
34723472
* function signals a value.
34733473
* <p>
3474-
* If the Publisher signals an onComplete, the resulting Single will signal a NoSuchElementException.
3474+
* If the Publisher signals an {@code onComplete}, the resulting {@code Single} will signal a {@link NoSuchElementException}.
34753475
* <p>
34763476
* Note that the inner {@code Publisher} returned by the handler function should signal
34773477
* either {@code onNext}, {@code onError} or {@code onComplete} in response to the received
34783478
* {@code Throwable} to indicate the operator should retry or terminate. If the upstream to
3479-
* the operator is asynchronous, signalling onNext followed by onComplete immediately may
3479+
* the operator is asynchronous, signaling onNext followed by onComplete immediately may
34803480
* result in the sequence to be completed immediately. Similarly, if this inner
34813481
* {@code Publisher} signals {@code onError} or {@code onComplete} while the upstream is
34823482
* active, the sequence is terminated with the same signal immediately.
@@ -3900,15 +3900,15 @@ public final <R> R to(@NonNull SingleConverter<T, ? extends R> converter) {
39003900

39013901
/**
39023902
* Returns a {@link Completable} that ignores the success value of this {@link Single}
3903-
* and calls {@code onComplete} instead on the returned {@code Completable}.
3903+
* and signals {@code onComplete} instead.
39043904
* <p>
39053905
* <img width="640" height="436" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.ignoreElement.png" alt="">
39063906
* <dl>
39073907
* <dt><b>Scheduler:</b></dt>
39083908
* <dd>{@code ignoreElement} does not operate by default on a particular {@link Scheduler}.</dd>
39093909
* </dl>
39103910
*
3911-
* @return a {@link Completable} that calls {@code onComplete} on it's observer when the source {@link Single}
3911+
* @return a {@link Completable} that signals {@code onComplete} on it's observer when the source {@link Single}
39123912
* calls {@code onSuccess}.
39133913
* @since 2.1.13
39143914
*/

0 commit comments

Comments
 (0)