-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unify doc comment style? #15458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yup. /// is preferred, though I understand //! Is still used for top level documentation for modules for some reason. |
Yeah, getting rid of inconsistent inner docs would be another desirable step to unifying doc comment style. |
Putting module docs on the |
I like the current situation where:
It also allows syntax highlighters to have different schemes to differentiate the different types of comments. |
@thehydroimpulse That is the style that the Rust codebase seems to prefer. What I want to remove is block documentation comments ( |
@alxgnon Then I agree we should get rid of |
I can't tell from your comment if you're thinking this is a convention or not, but... |
We have issues here as well as an open RFC for doc coments, so I'm gonna give this one a close. |
The majority of the Rust codebase uses
///
style doc comments. Rarely will a file contain occurences of/**
. I think it is safe to say that the///
style is currently preferred. I would like to see the entire codebase subscribe to a single doc comment style.This is a quite trivial fix for existing code, but I'd like to hear some external opinion before I make the change (or don't, depending).
The text was updated successfully, but these errors were encountered: