diff -r 4d33af5975a5 -r 7c7e029826e1 jdk/src/share/classes/java/util/stream/package-info.java --- a/jdk/src/share/classes/java/util/stream/package-info.java Wed Jul 02 14:14:17 2014 -0700 +++ b/jdk/src/share/classes/java/util/stream/package-info.java Thu Jul 03 09:30:25 2014 +0200 @@ -468,7 +468,7 @@ *
{@code
  *     int sumOfWeights = widgets.stream()
  *                               .reduce(0,
- *                                       (sum, b) -> sum + b.getWeight())
+ *                                       (sum, b) -> sum + b.getWeight(),
  *                                       Integer::sum);
  * }
* though the explicit map-reduce form is more readable and therefore should