From c4f54928e181ad3c323016bae633e6962aaf8885 Mon Sep 17 00:00:00 2001 From: baocaixiong Date: Tue, 3 Jun 2014 22:49:26 +0800 Subject: [PATCH] =?UTF-8?q?365=E8=A1=8C=E5=B0=91=E4=B8=AAf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a_swift_tour.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a_swift_tour.html b/a_swift_tour.html index 9908a4591..f0e44fe17 100644 --- a/a_swift_tour.html +++ b/a_swift_tour.html @@ -326,7 +326,7 @@

简单值

使用..创建的范围不包含上界,如果想包含的话需要使用...

函数和闭包

使用func来声明一个函数,使用名字和参数来调用函数。使用->来指定函数返回值。

-
unc greet(name: String, day: String) -> String {
+
func greet(name: String, day: String) -> String {
     return "Hello \(name), today is \(day)."
 }
 greet("Bob", "Tuesday")