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 227 views
1 answer 268 views
2 answers 202 views
1 answer 122 views
3 answers 645 views
...