Skip to content

Commit d13957a

Browse files
committed
Fix typo, 'first' was used instead of 'second'
In the `refcount` section, there was a two usage of the word first for identifying the subscriptions.
1 parent 0c1820f commit d13957a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Part 3 - Taming the sequence/6. Hot and Cold observables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Subscription s1 = cold.subscribe(i -> System.out.println("First: " + i));
161161
Thread.sleep(500);
162162
Subscription s2 = cold.subscribe(i -> System.out.println("Second: " + i));
163163
Thread.sleep(500);
164-
System.out.println("Unsubscribe first");
164+
System.out.println("Unsubscribe second");
165165
s2.unsubscribe();
166166
Thread.sleep(500);
167167
System.out.println("Unsubscribe first");
@@ -179,7 +179,7 @@ First: 2
179179
Second: 2
180180
First: 3
181181
Second: 3
182-
Unsubscribe first
182+
Unsubscribe second
183183
First: 4
184184
First: 5
185185
First: 6

0 commit comments

Comments
 (0)