From 11f4c642b280e74da6ab581fc11f3ec39d7f65bf Mon Sep 17 00:00:00 2001 From: Aleksandr Izmailov Date: Wed, 17 Apr 2024 13:01:32 +0200 Subject: [PATCH] Raw string literal can contain up to 255 #s according to Rust Reference https://doc.rust-lang.org/reference/tokens.html#raw-string-literals Rustc lexer: https://github.com/rust-lang/rust/blob/0ac1195ee0f8cd6d87e654a2312b899883272ec2/compiler/rustc_lexer/src/lib.rs#L211 --- src/std/str.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/str.md b/src/std/str.md index 5e8e7aec4a..8b2d744343 100644 --- a/src/std/str.md +++ b/src/std/str.md @@ -106,7 +106,7 @@ fn main() { println!("{}", quotes); // If you need "# in your string, just use more #s in the delimiter. - // You can use up to 65535 #s. + // You can use up to 255 #s. let longer_delimiter = r###"A string with "# in it. And even "##!"###; println!("{}", longer_delimiter); }