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

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

View File

@ -141,7 +141,7 @@ Swift 为不确定类型提供了两种特殊的类型别名:
这里有个示例,使用 `Any` 类型来和混合的不同类型一起工作,包括函数类型和非类类型。它创建了一个可以存储 `Any` 类型的数组 `things` 这里有个示例,使用 `Any` 类型来和混合的不同类型一起工作,包括函数类型和非类类型。它创建了一个可以存储 `Any` 类型的数组 `things`
```swift ```swift
var things = [Any]() var things: [Any] = []
things.append(0) things.append(0)
things.append(0.0) things.append(0.0)