Skip to content

Commit c02fd3c

Browse files
committed
minor
1 parent 8ae8c19 commit c02fd3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎koans/src/java8/AboutStreams.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public void max(){
4040

4141
@Koan
4242
public void min(){
43-
String longest = places.stream()
44-
.max(Comparator.comparing(cityName -> cityName.length()))
43+
String shortest = places.stream()
44+
.min(Comparator.comparing(cityName -> cityName.length()))
4545
.get();
46-
assertEquals(longest, __);
46+
assertEquals(shortest, __);
4747
}
4848

4949
@Koan

0 commit comments

Comments
 (0)