Rust and comments
Both single-line and multi-line comments are available in Rust. Comments are also used to write user documentation. See the spec of comments for more details.
fn main() {
println!("hello");
// println!("Foo");
/*
This is a
multiline comment
*/
println!("world"); // comments
}
- //
- /* */