summaryrefslogtreecommitdiffhomepage
path: root/swift.html.markdown
diff options
context:
space:
mode:
authorNami-Doc <vendethiel@hotmail.fr>2014-06-05 16:58:11 +0200
committerNami-Doc <vendethiel@hotmail.fr>2014-06-05 16:58:11 +0200
commit25c430a6092e874306facc5d3c6bb95061c52efe (patch)
tree39d504cc3fa1ebcac8269338ebe7c2b88de22519 /swift.html.markdown
parenta89a9a4fb6ed6cd327f84714fdf9690c0b18d576 (diff)
parente07f88cb4db7e1eac0668707d4c06ab68a967253 (diff)
Merge pull request #638 from xavieryao/master
[swift/zh-cn] zh-cn translation for swift
Diffstat (limited to 'swift.html.markdown')
-rw-r--r--swift.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index 6ab0cc20..f24b1592 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -153,7 +153,7 @@ print(numbers) // [3, 6, 18]
// If you just need to store data in a
// structured object, you should use a `struct`
-// A simple class `Square` extends `Shape
+// A simple class `Square` extends `Shape`
class Rect: Shape {
var sideLength: Int = 1
@@ -188,7 +188,7 @@ mySquare.shrink()
print(mySquare.sideLength) // 4
// If you don't need a custom getter and setter,
-// but still want to run code before an after getting or setting
+// but still want to run code before and after getting or setting
// a property, you can use `willSet` and `didSet`