summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndre Polykanine A.K.A. Menelion Elensúlë <andre@oire.org>2017-10-24 03:02:12 +0300
committerGitHub <noreply@github.com>2017-10-24 03:02:12 +0300
commite5ea3d0b7faa5b27cdffaaf25d6fea10594f3e24 (patch)
tree9532141d1810746101daa1d2922e87b2f68f6e2a
parentd5e7aaad403a90ca594f602d231a1946baba22ef (diff)
parenta01402b7b1486475abee1f77880dc9b7334ec44d (diff)
Merge pull request #2936 from CraryPrimitiveMan/patch-1
[go/zh-cn]Add brace
-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有指针,但是不支持指针运算。
// 你会因为空指针而犯错,但是不会因为增加指针而犯错。