Kotlin - Loops and Ranges
Identify the error in this Kotlin code snippet:
val numbers = arrayOf(10, 20, 30)
for (i, num in numbers.withIndex()) {
println("$i -> $num")
}