From 1861adf3bf164ef23e5f641a064b6dfd5e562c5c Mon Sep 17 00:00:00 2001 From: googlegis Date: Sat, 12 Jul 2014 21:42:14 +0800 Subject: [PATCH] add the lost { --- source/chapter2/22_Generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter2/22_Generics.md b/source/chapter2/22_Generics.md index ac2709ec..a92056f2 100755 --- a/source/chapter2/22_Generics.md +++ b/source/chapter2/22_Generics.md @@ -27,7 +27,7 @@ 这里是一个标准的,非泛型函数`swapTwoInts`,用来交换两个Int值: ```swift -func swapTwoInts(inout a: Int, inout b: Int) +func swapTwoInts(inout a: Int, inout b: Int) { let temporaryA = a a = b b = temporaryA