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