Skip to content

Commit 3c46da8

Browse files
committed
Update comment to reflect curr changing
1 parent 1d8b789 commit 3c46da8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/run-with-compiler-custom-args/staged-streams_1.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,15 @@ object Test {
389389
* {{{
390390
* /* initialization for stream 1 */
391391
*
392-
* var curr = null.asInstanceOf[Int] // keeps each element from reified stream
392+
* var curr = 0.asInstanceOf[Int] // keeps each element from reified stream
393393
* var nadv: Unit => Unit = (_) => () // keeps the advance for each nested level
394394
*
395-
* def adv: Unit => Unit = /* Linearization of stream1 - updates curr from stream1 */
395+
* def adv: Unit => Unit = {
396+
* /* Linearization of stream1 - updates curr from stream1 */
397+
* curr = ...
398+
* }
396399
* nadv = adv
397-
* adv()
400+
* nadv()
398401
*
399402
* /* initialization for stream 2 */
400403
*

0 commit comments

Comments
 (0)