resolve conflict
This commit is contained in:
4
source/chapter2/06_Functions.md
Normal file → Executable file
4
source/chapter2/06_Functions.md
Normal file → Executable file
@ -466,7 +466,7 @@ println("Result: \(mathFunction(2, 3))")
|
||||
// prints "Result: 6"
|
||||
```
|
||||
|
||||
就像其他类型一样,当赋值一个函数给常量或变量时,你可以让 Swift 来推测其函数类型:
|
||||
就像其他类型一样,当赋值一个函数给常量或变量时,你可以让 Swift 来推断其函数类型:
|
||||
|
||||
```swift
|
||||
let anotherMathFunction = addTwoInts
|
||||
@ -570,4 +570,4 @@ println("zero!")
|
||||
// -2...
|
||||
// -1...
|
||||
// zero!
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user