summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorHarry Sun <CraryPrimitiveMan@users.noreply.github.com>2017-10-22 21:44:54 -0500
committerGitHub <noreply@github.com>2017-10-22 21:44:54 -0500
commita01402b7b1486475abee1f77880dc9b7334ec44d (patch)
tree1878b7eb0bacba91e2f4fc9f0d0f9c4a928d2c21 /zh-cn
parent7c2bd365bd4f69d9d48b06fd1f2628dafc5218fb (diff)
Update go-cn.html.markdown
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/go-cn.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/zh-cn/go-cn.html.markdown b/zh-cn/go-cn.html.markdown
index 75498367..37b4b137 100644
--- a/zh-cn/go-cn.html.markdown
+++ b/zh-cn/go-cn.html.markdown
@@ -142,6 +142,7 @@ func learnTypes() {
func learnNamedReturns(x, y int) (z int) {
z = x * y
return // z is implicit here, because we named it earlier.
+}
// Go全面支持垃圾回收。Go有指针,但是不支持指针运算。
// 你会因为空指针而犯错,但是不会因为增加指针而犯错。