Update 04_Collection_Types.md
Set的for循环中,循环体中的值属性写错了 value -> genre
This commit is contained in:
@ -350,7 +350,7 @@ if favoriteGenres.contains("Funk") {
|
|||||||
|
|
||||||
```swift
|
```swift
|
||||||
for genre in favoriteGenres {
|
for genre in favoriteGenres {
|
||||||
println("\(value)")
|
println("\(genre)")
|
||||||
}
|
}
|
||||||
// Classical
|
// Classical
|
||||||
// Jazz
|
// Jazz
|
||||||
|
|||||||
Reference in New Issue
Block a user