summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/swift-cn.html.markdown
diff options
context:
space:
mode:
authorEvan <JustBlah@users.noreply.github.com>2016-10-01 23:33:04 +0300
committerven <vendethiel@hotmail.fr>2016-10-01 22:33:04 +0200
commit9234c9fea4d2db040e73def518117f4135d71940 (patch)
tree829e526f89bdd101b7c758b75f0cf9d37e667188 /zh-cn/swift-cn.html.markdown
parenta8704d313b8dcb97ba105da474293ad0d6adf9dd (diff)
Update Swift pre-decrement syntax to match v3.0 (#2395)
Diffstat (limited to 'zh-cn/swift-cn.html.markdown')
-rw-r--r--zh-cn/swift-cn.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/zh-cn/swift-cn.html.markdown b/zh-cn/swift-cn.html.markdown
index 017a7812..cba9252d 100644
--- a/zh-cn/swift-cn.html.markdown
+++ b/zh-cn/swift-cn.html.markdown
@@ -373,7 +373,7 @@ internal class Rect: Shape {
func shrink() {
if sideLength > 0 {
- --sideLength
+ sideLength -= 1
}
}