Update 2.2.md

應該是 Printf 而不是 Println
This commit is contained in:
Ash Wu
2012-10-12 11:41:34 +08:00
parent 35750b807c
commit 32f72e3c39

2
2.2.md
View File

@@ -158,7 +158,7 @@ Go中可以使用`+`来链接两个字符串:
s := "hello"
s = "c" + s[1:] // 字符串虽不能更改,但可进行切片操作
fmt.Println("%s\n", s)
fmt.Printf("%s\n", s)
如果要声明一个多行的字符串怎么办?可以通过`` ` ``来声明: