Skip to content

Commit b17bd1a

Browse files
devisnikakarnokd
authored andcommitted
DefaultSubscriber javadoc sample fix (#5407)
* change sample such that it compiles * fix: remove assignment
1 parent c11f715 commit b17bd1a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/io/reactivex/subscribers/DefaultSubscriber.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@
5050
* @param <T> the value type
5151
*
5252
* <p>Example<code><pre>
53-
* Disposable d =
54-
* Flowable.range(1, 5)
55-
* .subscribeWith(new DefaultSubscriber&lt;Integer>() {
53+
* Flowable.range(1, 5)
54+
* .subscribe(new DefaultSubscriber&lt;Integer>() {
5655
* &#64;Override public void onStart() {
5756
* System.out.println("Start!");
5857
* request(1);
@@ -71,8 +70,6 @@
7170
* System.out.println("Done!");
7271
* }
7372
* });
74-
* // ...
75-
* d.dispose();
7673
* </pre></code>
7774
*/
7875
public abstract class DefaultSubscriber<T> implements FlowableSubscriber<T> {

0 commit comments

Comments
 (0)