Skip to content

Commit 98b78fe

Browse files
authored
Fix: incorrect code sample toStream (#388)
1 parent 763a078 commit 98b78fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/stdlib/Traversables.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ object Traversables extends AnyFlatSpec with Matchers with org.scalaexercises.de
195195
}
196196

197197
/**
198-
* `toStream` will convert any `Traversable` to a `LazyList` where elements are evaluated as they
199-
* are needed:
198+
* `.to(LazyList)` will convert any `Traversable` to a `LazyList` where elements are evaluated as
199+
* they are needed:
200200
*/
201201
def toLazyListFunctionTraversables(res0: Boolean, res1: LazyList[Int]) = {
202202
val list = List(4, 6, 7, 8, 9, 13, 14)

0 commit comments

Comments
 (0)