8159821: "PrimitiveStream.iterateFinite" methods contain incorrect code sample

Reviewed-by: chegar, briangoetz
This commit is contained in:
Paul Sandoz 2016-06-17 10:08:39 -07:00
parent 6e64c35e6f
commit d7695b19e9
3 changed files with 3 additions and 3 deletions

View file

@ -926,7 +926,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
* {@code IntStream.iterate} should produce the same sequence of elements
* as produced by the corresponding for-loop:
* <pre>{@code
* for (int index=seed; predicate.test(index); index = f.apply(index)) {
* for (int index=seed; predicate.test(index); index = f.applyAsInt(index)) {
* ...
* }
* }</pre>