Currently there are a few conventions throughout the codebase, and I
think we need to agree which one to use, at least in the stdlib and
compilers. This email is the result of me needing to encode some
heuristics in rustdoc_ng to strip out the comments and keep the text.

So the major conventions I've seen are:

A:

/*! Summary

Body text

*/

B:

/**
 * Summary
 *
 * Body text
 */

C:

//! Summary
//!
//! Body text

Of course, /*! and //! are interchangable with /** and ///. Now, I
don't particularly care which one gets picked (B is my favorite for
longer blocks, C for <= 3 lines), and I especially dislike A, but
consistency is king.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to