Skip to content

Commit 0901ffb

Browse files
BraisGabinakarnokd
authored andcommitted
Improve the BehaviorSubject Java doc (#5048)
1.x: Improve the BehaviorSubject Java doc
1 parent 748b56d commit 0901ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/rx/subjects/BehaviorSubject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
* <p>
3636
* <pre> {@code
3737
38-
// observer will receive all events.
38+
// observer will receive all 4 events (including "default").
3939
BehaviorSubject<Object> subject = BehaviorSubject.create("default");
4040
subject.subscribe(observer);
4141
subject.onNext("one");
4242
subject.onNext("two");
4343
subject.onNext("three");
4444
45-
// observer will receive the "one", "two" and "three" events, but not "zero"
45+
// observer will receive the "one", "two" and "three" events, but not "default" and "zero"
4646
BehaviorSubject<Object> subject = BehaviorSubject.create("default");
4747
subject.onNext("zero");
4848
subject.onNext("one");

0 commit comments

Comments
 (0)