Skip to content

Commit 47a7744

Browse files
committed
Update according to review in issue #1159
1 parent 5c7de06 commit 47a7744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Observable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ trait Observable[+T]
11331133
* @return an Observable that emits `true` if the specified item is emitted by the source Observable,
11341134
* or `false` if the source Observable completes without emitting that item
11351135
*/
1136-
def contains(elem: Any): Observable[Boolean] = {
1136+
def contains[U >: T](elem: U): Observable[Boolean] = {
11371137
exists(_ == elem)
11381138
}
11391139

@@ -2580,7 +2580,7 @@ trait Observable[+T]
25802580
* <p>
25812581
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnTerminate.png">
25822582
* <p>
2583-
* This differs from `finallyDo` in that this happens BEFORE onCompleted/onError are emitted.
2583+
* This differs from `finallyDo` in that this happens **before** `onCompleted/nError` are emitted.
25842584
*
25852585
* @param onTerminate the action to invoke when the source Observable calls `onCompleted` or `onError`
25862586
* @return the source Observable with the side-effecting behavior applied

0 commit comments

Comments
 (0)