add the lost {
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
这里是一个标准的,非泛型函数`swapTwoInts`,用来交换两个Int值:
|
这里是一个标准的,非泛型函数`swapTwoInts`,用来交换两个Int值:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
func swapTwoInts(inout a: Int, inout b: Int)
|
func swapTwoInts(inout a: Int, inout b: Int) {
|
||||||
let temporaryA = a
|
let temporaryA = a
|
||||||
a = b
|
a = b
|
||||||
b = temporaryA
|
b = temporaryA
|
||||||
|
|||||||
Reference in New Issue
Block a user