Skip to content

Commit 83d77a9

Browse files
author
Justin Ryan
committed
Fix smallest reference
1 parent b754813 commit 83d77a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/learnrxjava/ObservableExercises.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public Observable<Integer> exerciseReduce(Observable<Integer> nums) {
7272
}
7373

7474
/**
75-
* Retrieve the id, title, and smallest box art url for every video.
75+
* Retrieve the id, title, and <b>smallest</b> box art url for every video.
7676
*
7777
* Now let's try combining reduce() with our other functions to build more complex queries.
7878
*

src/main/java/learnrxjava/ObservableSolutions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Observable<JSON> exerciseMovie(Observable<Movies> movies) {
9898
return v.boxarts.reduce((max, box) -> {
9999
int maxSize = max.height * max.width;
100100
int boxSize = box.height * box.width;
101-
if (boxSize > maxSize) {
101+
if (boxSize < maxSize) {
102102
return box;
103103
} else {
104104
return max;

0 commit comments

Comments
 (0)