Skip to content

Commit 37afd53

Browse files
committed
minor corrections to javadocs for new scan/reduce variants (#1835)
1 parent 36a3bbd commit 37afd53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/rx/Observable.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5450,7 +5450,7 @@ public final <R> Observable<R> reduce(R initialValue, Func2<R, ? super T, R> acc
54505450
* </dl>
54515451
*
54525452
* @param initialValueFactory
5453-
* factory to produce the initial (seed) accumulator item each time the Observable is subscribed to
5453+
* factory to produce the initial (seed) accumulator item each time the Observable is subscribed to
54545454
* @param accumulator
54555455
* an accumulator function to be invoked on each item emitted by the source Observable, the
54565456
* result of which will be used in the next accumulator call
@@ -6537,8 +6537,8 @@ public final <R> Observable<R> scan(R initialValue, Func2<R, ? super T, R> accum
65376537
* <p>
65386538
* This sort of function is sometimes called an accumulator.
65396539
* <p>
6540-
* Note that the Observable that results from this method will emit {@code initialValue} as its first
6541-
* emitted item.
6540+
* Note that the Observable that results from this method will emit the item returned from
6541+
* {@code initialValueFactory} as its first emitted item.
65426542
* <dl>
65436543
* <dt><b>Scheduler:</b></dt>
65446544
* <dd>{@code scan} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -6550,8 +6550,8 @@ public final <R> Observable<R> scan(R initialValue, Func2<R, ? super T, R> accum
65506550
* an accumulator function to be invoked on each item emitted by the source Observable, whose
65516551
* result will be emitted to {@link Observer}s via {@link Observer#onNext onNext} and used in the
65526552
* next accumulator call
6553-
* @return an Observable that emits {@code initialValue} followed by the results of each call to the
6554-
* accumulator function
6553+
* @return an Observable that emits the item returned from {@code initialValueFactory} followed by the
6554+
* results of each call to the accumulator function
65556555
* @see <a href="https://github.com/ReactiveX/RxJava/wiki/Transforming-Observables#scan">RxJava wiki: scan</a>
65566556
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211665.aspx">MSDN: Observable.Scan</a>
65576557
*/

0 commit comments

Comments
 (0)