Rust Comment Types and Documentation

# Introduction In this lab, we learn about the different types of comments supported by Rust, including regular comments and doc comments. Regular comments can be line comments, which start with two slashes and go to the end of the line, or block comments, which are enclosed between `/*` and `*/` and can be nested. Doc comments, on the other hand, are used to generate HTML library documentation and start with `///` or `//!`. > **Note:** If the lab does not specify a file name, you can use any file name you want. For example, you can use `main.rs`, compile and run it with `rustc main.rs && ./main`.

|60 : 00

Click the virtual machine below to start practicing