- //
- /* */
Rust and comments
- Both single-line and multi-line comments are available in Rust
examples/intro/comments/src/main.rs
fn main() { println!("hello"); // println!("Foo"); /* This is a multiline comment */ println!("world"); // comments }
fn main() { println!("hello"); // println!("Foo"); /* This is a multiline comment */ println!("world"); // comments }