correct a mistake, fix header ref

This commit is contained in:
stanzhai
2014-06-15 12:24:57 +08:00
parent fca29b22b1
commit 78604738b6
37 changed files with 13547 additions and 13547 deletions

View File

@ -35,7 +35,7 @@ Swift 语言存在两种类型:命名型类型和复合型类型。*命名型
类型注解显式地指定一个变量或表达式的值。类型注解始于冒号`:`终于类型,比如下面两个例子:
```swift
let someTuple(Double, Double) = (3.14159, 2.71828)
let someTuple: (Double, Double) = (3.14159, 2.71828)
func someFunction(a: Int){ /* ... */ }
```
在第一个例子中,表达式`someTuple`的类型被指定为`(Double, Double)`。在第二个例子中,函数`someFunction`的参数`a`的类型被指定为`Int`