fix:示例代码更新 (#1147)

This commit is contained in:
Sunset Wan
2021-06-23 02:03:02 +08:00
committed by GitHub
parent a15735f51b
commit 24d88f684a

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
} }