From 2790ffaaf1dfbb5cbbf2d13f2171e6ca85035ff4 Mon Sep 17 00:00:00 2001 From: TheLittleBoy Date: Sat, 20 Sep 2014 17:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Int[] 为错误写法 --- source/chapter1/02_a_swift_tour.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter1/02_a_swift_tour.md b/source/chapter1/02_a_swift_tour.md index 6aa0ce8f..86391296 100755 --- a/source/chapter1/02_a_swift_tour.md +++ b/source/chapter1/02_a_swift_tour.md @@ -289,7 +289,7 @@ increment(7) 函数也可以当做参数传入另一个函数。 ```swift -func hasAnyMatches(list: Int[], condition: Int -> Bool) -> Bool { +func hasAnyMatches(list: [Int], condition: Int -> Bool) -> Bool { for item in list { if condition(item) { return true