Skip to content

Commit 00fa56b

Browse files
committed
java.lang.ArrayIndexOutOfBoundsException: 0
1 parent 289a260 commit 00fa56b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_tour/mixin-class-composition.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ We would like to combine the functionality of `StringIterator` and `RichIterator
7373

7474
```tut
7575
object StringIteratorTest extends App {
76-
class RichStringIter extends StringIterator(args(0)) with RichIterator
76+
val s: String = "SCALA"
77+
class RichStringIter extends StringIterator(s) with RichIterator
7778
val richStringIter = new RichStringIter
7879
richStringIter foreach println
7980
}

0 commit comments

Comments
 (0)