Skip to content

Commit

Permalink
Fix documentation mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Dec 20, 2016
1 parent eaadb54 commit 267994f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/Completable.java
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,9 @@ public final Throwable blockingGet(long timeout, TimeUnit unit) {
}

/**
* Subscribes to this Completable only once, when the first Subscriber
* Subscribes to this Completable only once, when the first CompletableObserver
* subscribes to the result Completable, caches its terminal event
* and relays/replays it to subscribers.
* and relays/replays it to observers.
* <p>
* Note that this operator doesn't allow disposing the connection
* of the upstream source.
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/reactivex/JavadocWording.java
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ public void completableDocRefersToCompletableTypes() throws Exception {
&& !m.signature.contains("TestObserver")) {

if (idx < 11 || !m.javadoc.substring(idx - 11, idx + 8).equals("CompletableObserver")) {
e.append("java.lang.RuntimeException: Maybe doc mentions Observer but not using Observable\r\n at io.reactivex.")
e.append("java.lang.RuntimeException: Completable doc mentions Observer but not using Observable\r\n at io.reactivex.")
.append("Completable (Completable.java:").append(m.javadocLine + lineNumber(m.javadoc, idx) - 1).append(")\r\n\r\n");
}
}
Expand Down

0 comments on commit 267994f

Please sign in to comment.