Skip to content

Commit 5bd4ac2

Browse files
zhyuriakarnokd
authored andcommitted
fix typo ingored (#5938)
just fix few typo.
1 parent 995a6f5 commit 5bd4ac2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Sometimes, there is an implicit data dependency between the previous sequence an
329329
AtomicInteger count = new AtomicInteger();
330330
331331
Observable.range(1, 10)
332-
.doOnNext(ingored -> count.incrementAndGet())
332+
.doOnNext(ignored -> count.incrementAndGet())
333333
.ignoreElements()
334334
.andThen(Single.just(count.get()))
335335
.subscribe(System.out::println);
@@ -341,7 +341,7 @@ Unfortunately, this prints `0` because `Single.just(count.get())` is evaluated a
341341
AtomicInteger count = new AtomicInteger();
342342

343343
Observable.range(1, 10)
344-
.doOnNext(ingored -> count.incrementAndGet())
344+
.doOnNext(ignored -> count.incrementAndGet())
345345
.ignoreElements()
346346
.andThen(Single.defer(() -> Single.just(count.get())))
347347
.subscribe(System.out::println);
@@ -353,7 +353,7 @@ or
353353
AtomicInteger count = new AtomicInteger();
354354

355355
Observable.range(1, 10)
356-
.doOnNext(ingored -> count.incrementAndGet())
356+
.doOnNext(ignored -> count.incrementAndGet())
357357
.ignoreElements()
358358
.andThen(Single.fromCallable(() -> count.get()))
359359
.subscribe(System.out::println);

0 commit comments

Comments
 (0)