Skip to content

Commit

Permalink
Fix doOnEach example in Part 3, Section 1
Browse files Browse the repository at this point in the history
  • Loading branch information
xstefank committed Aug 11, 2019
1 parent 4521922 commit 3c44d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Part 3 - Taming the sequence/1. Side effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Observable<String> values = Observable.just("side", "effects");

values
.doOnEach(new PrintSubscriber("Log"))
.map(s -> s.toUpperCase())
.map(s -> ((String) s).toUpperCase())
.subscribe(new PrintSubscriber("Process"));
```
[Output](/tests/java/itrx/chapter3/sideeffects/DoOnExample.java)
Expand Down
2 changes: 1 addition & 1 deletion tests/java/itrx/chapter3/sideeffects/DoOnExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void exampleDoOnEach() {

values
.doOnEach(new PrintSubscriber("Log"))
.map(s -> s.toUpperCase())
.map(s -> ((String) s).toUpperCase())
.subscribe(new PrintSubscriber("Process"));

// Log: side
Expand Down

0 comments on commit 3c44d9d

Please sign in to comment.