Skip to content

Commit

Permalink
Merge pull request #1839 from zinoviy23/master
Browse files Browse the repository at this point in the history
Raw string literal can contain up to 255 #s according to Rust Reference
  • Loading branch information
marioidival committed Apr 24, 2024
2 parents 60d34b5 + 11f4c64 commit 2e6171b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/str.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2e6171b

Please sign in to comment.