Skip to content

Commit 7e6fc9e

Browse files
nfeketeruslansennov
authored andcommitted
reflect that Stream.gen got renamed to Stream.continually (#38)
1 parent c40171d commit 7e6fc9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/asciidoc/usage_guide.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ The new collections are based on http://docs.oracle.com/javase/8/docs/api/java/l
338338
[source,java]
339339
----
340340
// 1000 random numbers
341-
for (double random : Stream.gen(Math::random).take(1000)) {
341+
for (double random : Stream.continually(Math::random).take(1000)) {
342342
...
343343
}
344344
----

0 commit comments

Comments
 (0)