From 32f72e3c39942697bb9cd43a6d06e4ce1f104e1a Mon Sep 17 00:00:00 2001 From: Ash Wu Date: Fri, 12 Oct 2012 11:41:34 +0800 Subject: [PATCH] Update 2.2.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 應該是 Printf 而不是 Println --- 2.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.2.md b/2.2.md index 1f403bda..2a7df71b 100644 --- a/2.2.md +++ b/2.2.md @@ -158,7 +158,7 @@ Go中可以使用`+`来链接两个字符串: s := "hello" s = "c" + s[1:] // 字符串虽不能更改,但可进行切片操作 - fmt.Println("%s\n", s) + fmt.Printf("%s\n", s) 如果要声明一个多行的字符串怎么办?可以通过`` ` ``来声明: