From 3a87784c352e815a3f149c16accfcd5e3bca57d6 Mon Sep 17 00:00:00 2001 From: Shiyao Qi Date: Fri, 13 Jun 2014 17:22:36 +0800 Subject: [PATCH] Fixed the Chinese period. Fixed the Chinese period. --- source/chapter2/04_Collection_Types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter2/04_Collection_Types.md b/source/chapter2/04_Collection_Types.md index 87d85d46..54c13db9 100644 --- a/source/chapter2/04_Collection_Types.md +++ b/source/chapter2/04_Collection_Types.md @@ -170,7 +170,7 @@ Swift 数组对存储数据有具体要求。 不同于 Objective-C 的`NSArray` 我们可以使用构造语法来创建一个由特定数据类型构成的空数组: var someInts = Int[]() - println("someInts is of type Int[] with \(someInts。count) items。") + println("someInts is of type Int[] with \(someInts.count) items。") // 打印 "someInts is of type Int[] with 0 items。"(someInts是0数据项的Int[]数组) 注意`someInts`被设置为一个`Int[]`构造函数的输出所以它的变量类型被定义为`Int[]`。