mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 23:08:34 +08:00
修改C++字符串特殊字符的描述
估计是译者粗心了。
This commit is contained in:
@@ -22,7 +22,7 @@ Go 支持以下 2 种形式的字面值:
|
||||
|
||||
`This is a raw string \n` 中的 `\n\` 会被原样输出。
|
||||
|
||||
和 C/C++ 一样,Go 中的字符串是根据长度限定,而非特殊字符。
|
||||
和 C/C++不一样,Go 中的字符串是根据长度限定,而非特殊字符`\0`。
|
||||
|
||||
`string` 类型的零值为长度为零的字符串,即空字符串 `""`。
|
||||
|
||||
|
Reference in New Issue
Block a user