--- old/src/java.base/share/classes/java/util/stream/package-info.java 2020-03-13 15:39:07.000000000 +0000 +++ new/src/java.base/share/classes/java/util/stream/package-info.java 2020-03-13 15:39:07.000000000 +0000 @@ -316,7 +316,7 @@ * see the API note documented on the {@link java.util.stream.Stream#count count} * operation.) * - *

Many computations where one might be tempted to use side effects can be more + *

Many computations where one might be tempted to use side-effects can be more * safely and efficiently expressed without side-effects, such as using * reduction instead of mutable * accumulators. However, side-effects such as using {@code println()} for debugging @@ -445,7 +445,7 @@ * required. * *

The "widgets" examples shown earlier shows how reduction combines with - * other operations to replace for loops with bulk operations. If {@code widgets} + * other operations to replace for-loops with bulk operations. If {@code widgets} * is a collection of {@code Widget} objects, which have a {@code getWeight} method, * we can find the heaviest widget with: *

{@code