Error in the swift tour example

Hi, I was going through the swift tour in my computer. In the contol flow section this example:

let interestingNumbers = [
“Prime”: [2, 3, 5, 7, 11, 13],
“Fibonacci”: [1, 1, 2, 3, 5, 8],
“Square”: [1, 4, 9, 16, 25],
]
var largest = 0
for (kind, numbers) in interestingNumbers {
for number in numbers {
if number > largest {
largest = number
}
}
}
print(largest)
// Prints “25”

I got this error

I get a recommendation to fix it but this error is still online. I didn’t know how to ask for a pull request in the main repo that’s why I’m pointing it out here.

this is not error.
only warning.
change this line:
for (kind, numbers) in interestingNumbers {

to:
for ( _, numbers) in interestingNumbers {

1 Like