Skip to content

Glossary: Rust Basics

Doc comment

Also written: doc comments, ///

A comment starting with `///` that describes the item below it. Cargo turns doc comments into documentation.

Where the book teaches it

Related terms

cargo docdocs.rs