Skip to content

Commit eec237e

Browse files
authored
Fix: incorrect code sample toStream
In the `toStream` section, `toStream` is not actually called, rather `.to(LazyList)`.
1 parent 763a078 commit eec237e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/Traversables.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ 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
198+
* `.to(LazyList)` will convert any `Traversable` to a `LazyList` where elements are evaluated as they
199199
* are needed:
200200
*/
201201
def toLazyListFunctionTraversables(res0: Boolean, res1: LazyList[Int]) = {

0 commit comments

Comments
 (0)