Skip to content

Commit 2b3ffd7

Browse files
committed
Update 2. Key types.md
1 parent 5820468 commit 2b3ffd7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Part 1 - Getting Started/2. Key types.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface Observer<T> {
4040

4141
Those three methods are the behaviour that is executed every time the observable pushes a value. The observer will have its `onNext` called zero or more times, optionally followed by an `onCompleted` or an `onError`. No calls happen after a call to `onError` or `onCompleted`.
4242

43-
When developing Rx code, you'll see a lot of `Observable`, but not so much of `Observer`. While it is important to understand the `Observer`, there are shorthands that that remove the need to instantiate it yourself.
43+
When developing Rx code, you'll see a lot of `Observable`, but not so much of `Observer`. While it is important to understand the `Observer`, there are shorthands that remove the need to instantiate it yourself.
4444

4545

4646
## Implementing Observable and Observer
@@ -132,9 +132,8 @@ Late: 3
132132
Our late subscriber now missed the first value, which fell off the buffer of size 2. Similarily, old values fall off the buffer as time passes, when the subject is created with `createWithTime`
133133

134134
```java
135-
ReplaySubject<Integer> s = ReplaySubject.createWithTime(
136-
150, TimeUnit.MILLISECONDS,
137-
Schedulers.immediate());
135+
ReplaySubject<Integer> s = ReplaySubject.createWithTime(150, TimeUnit.MILLISECONDS,
136+
Schedulers.immediate());
138137
s.onNext(0);
139138
Thread.sleep(100);
140139
s.onNext(1);

0 commit comments

Comments
 (0)