Skip to content

Commit 44720f9

Browse files
vanniktechakarnokd
authored andcommitted
2.x: Fix some typos in Flowable + Observer documentation (#4344)
1 parent cb427c5 commit 44720f9

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/main/java/io/reactivex/Flowable.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* <p>
5050
* The Flowable hosts the default buffer size of 128 elements for operators, accessible via {@link #bufferSize()},
5151
* that can be overridden globally via the system parameter {@code rx2.buffer-size}. Most operators, however, have
52-
* overloads that allow setting their internal buffer size explicity.
52+
* overloads that allow setting their internal buffer size explicitly.
5353
* <p>
5454
* The documentation for this class makes use of marble diagrams. The following legend explains these diagrams:
5555
* <p>
@@ -2688,7 +2688,7 @@ public static final <T> Flowable<T> just(T v1, T v2, T v3, T v4, T v5, T v6, T v
26882688
Objects.requireNonNull(v5, "The fifth value is null");
26892689
Objects.requireNonNull(v6, "The sixth value is null");
26902690
Objects.requireNonNull(v7, "The seventh value is null");
2691-
Objects.requireNonNull(v8, "The eigth value is null");
2691+
Objects.requireNonNull(v8, "The eighth value is null");
26922692

26932693
return fromArray(v1, v2, v3, v4, v5, v6, v7, v8);
26942694
}
@@ -2738,7 +2738,7 @@ public static final <T> Flowable<T> just(T v1, T v2, T v3, T v4, T v5, T v6, T v
27382738
Objects.requireNonNull(v5, "The fifth value is null");
27392739
Objects.requireNonNull(v6, "The sixth value is null");
27402740
Objects.requireNonNull(v7, "The seventh value is null");
2741-
Objects.requireNonNull(v8, "The eigth value is null");
2741+
Objects.requireNonNull(v8, "The eighth value is null");
27422742
Objects.requireNonNull(v9, "The ninth is null");
27432743

27442744
return fromArray(v1, v2, v3, v4, v5, v6, v7, v8, v9);
@@ -2791,7 +2791,7 @@ public static final <T> Flowable<T> just(T v1, T v2, T v3, T v4, T v5, T v6, T v
27912791
Objects.requireNonNull(v5, "The fifth value is null");
27922792
Objects.requireNonNull(v6, "The sixth value is null");
27932793
Objects.requireNonNull(v7, "The seventh value is null");
2794-
Objects.requireNonNull(v8, "The eigth value is null");
2794+
Objects.requireNonNull(v8, "The eighth value is null");
27952795
Objects.requireNonNull(v9, "The ninth is null");
27962796
Objects.requireNonNull(v10, "The tenth is null");
27972797

@@ -5060,7 +5060,7 @@ public final Flowable<T> ambWith(Publisher<? extends T> other) {
50605060
* <dl>
50615061
* <dt><b>Backpressure:</b></dt>
50625062
* <dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded manner
5063-
* (i.e., no backkpressure applied to it).</dd>
5063+
* (i.e., no backpressure applied to it).</dd>
50645064
* <dt><b>Scheduler:</b></dt>
50655065
* <dd>{@code exists} does not operate by default on a particular {@link Scheduler}.</dd>
50665066
* </dl>
@@ -6042,7 +6042,7 @@ public final <R> Flowable<R> compose(FlowableTransformer<T, R> composer) {
60426042
* <dd>{@code concatMap} does not operate by default on a particular {@link Scheduler}.</dd>
60436043
* </dl>
60446044
*
6045-
* @param <R> the type of the inner Publisher sources and thus the ouput type
6045+
* @param <R> the type of the inner Publisher sources and thus the output type
60466046
* @param mapper
60476047
* a function that, when applied to an item emitted by the source Publisher, returns an
60486048
* Publisher
@@ -6073,7 +6073,7 @@ public final <R> Flowable<R> concatMap(Function<? super T, ? extends Publisher<?
60736073
* <dd>{@code concatMap} does not operate by default on a particular {@link Scheduler}.</dd>
60746074
* </dl>
60756075
*
6076-
* @param <R> the type of the inner Publisher sources and thus the ouput type
6076+
* @param <R> the type of the inner Publisher sources and thus the output type
60776077
* @param mapper
60786078
* a function that, when applied to an item emitted by the source Publisher, returns an
60796079
* Publisher
@@ -7281,7 +7281,7 @@ public final Flowable<T> doOnError(Consumer<? super Throwable> onError) {
72817281
}
72827282

72837283
/**
7284-
* Calls the appropriate onXXX method (shared between all Subscribers) for the lifecylce events of
7284+
* Calls the appropriate onXXX method (shared between all Subscribers) for the lifecylcle events of
72857285
* the sequence (subscription, cancellation, requesting).
72867286
* <p>
72877287
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnNext.png" alt="">
@@ -7431,7 +7431,7 @@ public void accept(Throwable e) {
74317431
* <dl>
74327432
* <dt><b>Backpressure:</b></dt>
74337433
* <dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded manner
7434-
* (i.e., no backkpressure applied to it).</dd>
7434+
* (i.e., no backpressure applied to it).</dd>
74357435
* <dt><b>Scheduler:</b></dt>
74367436
* <dd>{@code elementAt} does not operate by default on a particular {@link Scheduler}.</dd>
74377437
* </dl>
@@ -7463,7 +7463,7 @@ public final Flowable<T> elementAt(long index) {
74637463
* <dl>
74647464
* <dt><b>Backpressure:</b></dt>
74657465
* <dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded manner
7466-
* (i.e., no backkpressure applied to it).</dd>
7466+
* (i.e., no backpressure applied to it).</dd>
74677467
* <dt><b>Scheduler:</b></dt>
74687468
* <dd>{@code elementAtOrDefault} does not operate by default on a particular {@link Scheduler}.</dd>
74697469
* </dl>
@@ -7969,7 +7969,7 @@ public final <U, R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<
79697969
* if true, exceptions from the current Flowable and all inner Publishers are delayed until all of them terminate
79707970
* if false, the first one signalling an exception will terminate the whole sequence immediately
79717971
* @param bufferSize
7972-
* the numer of elements to prefetch from the innner Publishers.
7972+
* the number of elements to prefetch from the innner Publishers.
79737973
* @return a Flowable that emits the results of applying a function to a pair of values emitted by the
79747974
* source Publisher and the collection Publisher
79757975
* @see <a href="http://reactivex.io/documentation/operators/flatmap.html">ReactiveX operators documentation: FlatMap</a>
@@ -8081,7 +8081,7 @@ public final <U> Flowable<U> flatMapIterable(final Function<? super T, ? extends
80818081
* a function that returns an Iterable sequence of values for when given an item emitted by the
80828082
* source Publisher
80838083
* @param bufferSize
8084-
* the numer of elements to prefetch from the current Flowable
8084+
* the number of elements to prefetch from the current Flowable
80858085
* @return a Flowable that emits the results of merging the items emitted by the source Publisher with
80868086
* the values in the Iterables corresponding to those items, as generated by {@code collectionSelector}
80878087
* @see <a href="http://reactivex.io/documentation/operators/flatmap.html">ReactiveX operators documentation: FlatMap</a>
@@ -8159,7 +8159,7 @@ public Publisher<U> apply(T t) throws Exception {
81598159
* a function that returns an item based on the item emitted by the source Publisher and the
81608160
* Iterable returned for that item by the {@code collectionSelector}
81618161
* @param prefetch
8162-
* the numer of elements to prefetch from the current Flowable
8162+
* the number of elements to prefetch from the current Flowable
81638163
* @return a Flowable that emits the results of merging the items emitted by the source Publisher with
81648164
* the values in the Iterables corresponding to those items, as generated by {@code collectionSelector}
81658165
* @throws IllegalArgumentException
@@ -9813,7 +9813,7 @@ public final <R> Flowable<R> reduce(R seed, BiFunction<R, ? super T, R> reducer)
98139813
*
98149814
* @param <R> the accumulator and output value type
98159815
* @param seedSupplier
9816-
* the Callbable that provides the initial (seed) accumulator value for each individual Subscriber
9816+
* the Callable that provides the initial (seed) accumulator value for each individual Subscriber
98179817
* @param reducer
98189818
* an accumulator function to be invoked on each item emitted by the source Publisher, the
98199819
* result of which will be used in the next accumulator call

src/main/java/io/reactivex/Observable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public static final <T> Observable<T> just(T v1, T v2, T v3, T v4, T v5, T v6, T
628628
Objects.requireNonNull(v5, "The fifth value is null");
629629
Objects.requireNonNull(v6, "The sixth value is null");
630630
Objects.requireNonNull(v7, "The seventh value is null");
631-
Objects.requireNonNull(v8, "The eigth value is null");
631+
Objects.requireNonNull(v8, "The eighth value is null");
632632

633633
return fromArray(v1, v2, v3, v4, v5, v6, v7, v8);
634634
}
@@ -643,7 +643,7 @@ public static final <T> Observable<T> just(T v1, T v2, T v3, T v4, T v5, T v6, T
643643
Objects.requireNonNull(v5, "The fifth value is null");
644644
Objects.requireNonNull(v6, "The sixth value is null");
645645
Objects.requireNonNull(v7, "The seventh value is null");
646-
Objects.requireNonNull(v8, "The eigth value is null");
646+
Objects.requireNonNull(v8, "The eighth value is null");
647647
Objects.requireNonNull(v9, "The ninth is null");
648648

649649
return fromArray(v1, v2, v3, v4, v5, v6, v7, v8, v9);

0 commit comments

Comments
 (0)