Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/doc/style-guide/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ given:
The following guidelines for comments are recommendations only, a mechanical
formatter might skip formatting of comments.

The style guide does not account for every possible placement of comments.
Placing a comment in unexpected places (e.g. between `pub` and `fn` in `pub
fn`) may result in suboptimal "best effort" formatting by a formatter.

Prefer line comments (`//`) to block comments (`/* ... */`).

When using line comments, put a single space after the opening sigil.
Expand Down