--- a/jdk/src/java.base/share/classes/java/util/stream/LongStream.java Sat May 28 13:57:30 2016 +0530
+++ b/jdk/src/java.base/share/classes/java/util/stream/LongStream.java Fri Jun 17 10:08:39 2016 -0700
@@ -916,7 +916,7 @@
* {@code LongStream.iterate} should produce the same sequence of elements
* as produced by the corresponding for-loop:
* <pre>{@code
- * for (long index=seed; predicate.test(index); index = f.apply(index)) {
+ * for (long index=seed; predicate.test(index); index = f.applyAsLong(index)) {
* ...
* }
* }</pre>