Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let x = "here is a double quote: \x22 ";
- let y = r"this isn't a double quote: \x22, how do I show one?";
- let z = r#"Ah, here it is: ". But I want to show " + # but I can't "#;
- let w = r##"Sweet: "# "##;
- println!("{}", x);
- println!("{}", y);
- println!("{}", z);
- println!("{}", w);
- }
Add Comment
Please, Sign In to add comment