Skip to content

Commit cd45675

Browse files
ikesyoakarnokd
authored andcommitted
2.x: Fix Observable.singleElement doc (#4989)
1 parent d1cd153 commit cd45675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/reactivex/Observable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10015,7 +10015,7 @@ public final Observable<T> share() {
1001510015
}
1001610016

1001710017
/**
10018-
* Returns an Observable that emits the single item emitted by this Observable if this Observable
10018+
* Returns a Maybe that emits the single item emitted by this Observable if this Observable
1001910019
* emits only a single item, otherwise if this Observable emits more than one item or no items, an
1002010020
* {@code IllegalArgumentException} or {@code NoSuchElementException} is signalled respectively.
1002110021
* <p>
@@ -10025,7 +10025,7 @@ public final Observable<T> share() {
1002510025
* <dd>{@code singleElement} does not operate by default on a particular {@link Scheduler}.</dd>
1002610026
* </dl>
1002710027
*
10028-
* @return an Observable that emits the single item emitted by the source ObservableSource
10028+
* @return a {@link Maybe} that emits the single item emitted by the source ObservableSource
1002910029
* @see <a href="http://reactivex.io/documentation/operators/first.html">ReactiveX operators documentation: First</a>
1003010030
*/
1003110031
@CheckReturnValue

0 commit comments

Comments
 (0)