Merge pull request #1458 from relaxcn/main

Modify string-slice.md
pull/1465/head
Sunface 3 months ago committed by GitHub
commit 09f417d649
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}

Loading…
Cancel
Save