How to print quotation mark in Rust

1 Answer

0 votes
fn main() {
    let string = String::from("rust");

    println!("\"{}\"", string);
}
 




/*
run:
    
"rust"
    
*/

 



answered Oct 1, 2022 by avibootz

Related questions

1 answer 217 views
1 answer 245 views
2 answers 185 views
1 answer 111 views
3 answers 627 views
...