Skip to content

fix: 字符串特殊字符与描述对应错位 #1415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swift-6.docc/LanguageGuide/StringsAndCharacters.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ It also ends with a line break.

字符串字面量可以包含以下特殊字符:

- 转义字符 `\0`(空字符)、`\\`(反斜线)、`\r`(水平制表符)、`\t`(换行符)、`\n`(回车符)、`\"`(双引号)、`\'`(单引号)。
- 转义字符 `\0`(空字符)、`\\`(反斜线)、`\t`(水平制表符)、`\n`(换行符)、`\r`(回车符)、`\"`(双引号)、`\'`(单引号)。

- 任意的 Unicode 标量,可以写成 `\u{`n`}`(u 为小写),其中n为任意一到八位十六进制数且可用的 Unicode 位码。
(Unicode在文档<doc:StringsAndCharacters#Unicode> 中进行解析讨论)
Expand Down