From 68d7728062c86e8ea5b0197d7100118d63a21fe2 Mon Sep 17 00:00:00 2001 From: RockyMyx Date: Thu, 26 Jun 2014 10:20:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E6=96=87=E5=AD=97=E6=A0=A1=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/chapter3/04_Expressions.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/chapter3/04_Expressions.md b/source/chapter3/04_Expressions.md index 3123af67..b68d5c80 100755 --- a/source/chapter3/04_Expressions.md +++ b/source/chapter3/04_Expressions.md @@ -127,7 +127,6 @@ Swift 标准库提供了如下的二元运算符: ## 赋值表达式(Assignment Operator) -The assigment operator sets a new value for a given expression. It has the following form: 赋值表达式会对某个给定的表达式赋值。 它有如下的形式; > `expression` = `value` @@ -231,7 +230,7 @@ let y2: SomeType = x // Type information from an annotation \__COLUMN__ | Int | 所在的列数 \__FUNCTION__ | String | 所在的function 的名字 -在某个函数(function)中,`__FUNCTION__` 会返回当前函数的名字。 在某个方法(method)中,它会返回当前方法的名字。 在某个property 的getter/setter中会返回这个属性的名字。 在init/subscript中 只有的特殊成员(member)中会返回这个keyword的名字,在某个文件的顶端(the top level of a file),它返回的是当前module的名字。 +在某个函数(function)中,`__FUNCTION__` 会返回当前函数的名字。 在某个方法(method)中,它会返回当前方法的名字。 在某个property 的getter/setter中会返回这个属性的名字。 在特殊的成员如init/subscript中 会返回这个关键字的名字,在某个文件的顶端(the top level of a file),它返回的是当前module的名字。 一个array literal,是一个有序的值的集合。 它的形式是: