Comments

Any program requires comments and indeed Rust supports a few different varieties:

  • Regular comments which are ignored by the compiler:
  • // Line comments which go to the end of the line.
  • /* Block comments which go to the closing delimiter. */
  • /// Generate library docs for the following item.
  • //! Generate library docs for the enclosing item.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

See also:

Library documentation