2 Commits

Author SHA1 Message Date
373c42e456 fix:示例代码更新 2021-06-23 00:13:20 +08:00
a15735f51b fix:for -> for-in (#1146) 2021-06-22 11:08:23 -05:00

View File

@ -97,7 +97,7 @@ class Person {
```swift ```swift
class Residence { class Residence {
var rooms = [Room]() var rooms: [Room] = []
var numberOfRooms: Int { var numberOfRooms: Int {
return rooms.count return rooms.count
} }