Skip to content

Commit d01f851

Browse files
authored
Merge pull request #337 from seratch/patch-1
Fix a typo in org.reactivestreams.example.unicast.AsyncSubscriber
2 parents 4e8e372 + 1b4f21f commit d01f851

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CopyrightWaivers.txt

+1
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ rstoyanchev | Rossen Stoyanchev, [email protected], Pivotal
3434
BjornHamels | Björn Hamels, [email protected]
3535
JakeWharton | Jake Wharton, [email protected]
3636
anthonyvdotbe | Anthony Vanelverdinghe, [email protected]
37+
seratch | Kazuhiro Sera, [email protected], SmartNews, Inc.

examples/src/main/java/org/reactivestreams/example/unicast/AsyncSubscriber.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ else if (s instanceof OnSubscribe)
199199
handleOnSubscribe(((OnSubscribe)s).subscription);
200200
else if (s instanceof OnError) // We are always able to handle OnError, obeying rule 2.10
201201
handleOnError(((OnError)s).error);
202-
else if (s == OnComplete.Instance) // We are always able to handle OnError, obeying rule 2.9
202+
else if (s == OnComplete.Instance) // We are always able to handle OnComplete, obeying rule 2.9
203203
handleOnComplete();
204204
}
205205
} finally {
@@ -235,4 +235,4 @@ private final void tryScheduleToExecute() {
235235
}
236236
}
237237
}
238-
}
238+
}

0 commit comments

Comments
 (0)