mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8159821: "PrimitiveStream.iterateFinite" methods contain incorrect code sample
Reviewed-by: chegar, briangoetz
This commit is contained in:
parent
6e64c35e6f
commit
d7695b19e9
3 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue