Merge pull request #60 from hSATAC/patch-1

Update 2.2.md
This commit is contained in:
astaxie
2012-10-11 21:37:31 -07:00

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)
如果要声明一个多行的字符串怎么办?可以通过`` ` ``来声明: