From ada7bf9f0676c1c5ea65ce68ae41b6eec057a53d Mon Sep 17 00:00:00 2001 From: RelaxCN <64476349+relaxcn@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:45:03 +0800 Subject: [PATCH] Modify the comment about multiple # signs at the beginning and end of a string --- src/basic/compound-type/string-slice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/compound-type/string-slice.md b/src/basic/compound-type/string-slice.md index a4508585..762d9997 100644 --- a/src/basic/compound-type/string-slice.md +++ b/src/basic/compound-type/string-slice.md @@ -620,7 +620,7 @@ fn main() { let quotes = r#"And then I said: "There is no escape!""#; println!("{}", quotes); - // 如果还是有歧义,可以继续增加,没有限制 + // 如果字符串中包含 # 号,可以在开头和结尾加多个 # 号,最多加255个,只需保证与字符串中连续 # 号的个数不超过开头和结尾的 # 号的个数即可 let longer_delimiter = r###"A string with "# in it. And even "##!"###; println!("{}", longer_delimiter); }