diff options
author | Joey Huang <kamidox@qq.com> | 2015-03-03 09:26:58 +0800 |
---|---|---|
committer | Joey Huang <kamidox@qq.com> | 2015-03-03 09:26:58 +0800 |
commit | be4d069c58489afcd09d7b41b8b7cd27a7ef635f (patch) | |
tree | fb6bb540651f87adb281b1c924e5fc4c81d3533b | |
parent | d05baf5bd02cf6c7270e35ee79964764848d8f1b (diff) |
correct typo
-rw-r--r-- | zh-cn/swift-cn.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zh-cn/swift-cn.html.markdown b/zh-cn/swift-cn.html.markdown index d55f1aef..28001e3f 100644 --- a/zh-cn/swift-cn.html.markdown +++ b/zh-cn/swift-cn.html.markdown @@ -574,7 +574,7 @@ println(foundAtIndex == 2) // true // 甚至是 Unicode 的数学运算符等 prefix operator !!! {} -// 定义一个前缀运算符,使矩形的边长放大倍 +// 定义一个前缀运算符,使矩形的边长放大三倍 prefix func !!! (inout shape: Square) -> Square { shape.sideLength *= 3 return shape @@ -583,7 +583,7 @@ prefix func !!! (inout shape: Square) -> Square { // 当前值 println(mySquare.sideLength) // 4 -// 使用自定义的 !!! 运算符来把矩形边长放大三位 +// 使用自定义的 !!! 运算符来把矩形边长放大三倍 !!!mySquare println(mySquare.sideLength) // 12 |