jdk/src/java.base/share/classes/java/util/stream/LongStream.java
changeset 39060 d39deb27f118
parent 38444 a5cdecb7d181
child 40806 46132d430504
--- 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>