add the lost {

This commit is contained in:
googlegis
2014-07-12 21:42:14 +08:00
parent c44268910e
commit 1861adf3bf

View File

@ -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