From 1fe696ca6a988ccff4f5c38d791ad38665f20096 Mon Sep 17 00:00:00 2001 From: alsotang Date: Sat, 18 Oct 2014 01:55:01 +0800 Subject: [PATCH] Update 18_Type_Casting.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 纠错 --- source/chapter2/18_Type_Casting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter2/18_Type_Casting.md b/source/chapter2/18_Type_Casting.md index 14e69676..fc0d7b4f 100755 --- a/source/chapter2/18_Type_Casting.md +++ b/source/chapter2/18_Type_Casting.md @@ -199,7 +199,7 @@ for movie in someObjects as Movie[] { 这里有个示例,使用 `Any` 类型来和混合的不同类型一起工作,包括非`class`类型。它创建了一个可以存储`Any`类型的数组 `things`。 ```swift -var things = Any[]() +var things = [Any]() things.append(0) things.append(0.0)