We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ rustfmt --version rustfmt 1.4.9-nightly (33e3667 2019-10-07)
Code:
struct Foo { // a: i32, // // b: i32, }
Formatting with rustfmt foo.rs:
rustfmt foo.rs
I expected rustfmt to leave the code unmodified.
struct Foo { a: i32, // // b: i32, }
Formatting with rustfmt format_code_in_doc_comments=true src/foo.rs:
rustfmt format_code_in_doc_comments=true src/foo.rs
struct Foo { a: i32, /* * b: i32, */ }
The text was updated successfully, but these errors were encountered:
Maybe off-topic, I just wonder if I should create a new issue (or I am lazy).
/// Hello /// world.
Should be formatted as
/// Hello world.
But if the sentence already ends.
/// Hello. /// World.
Then it should be the same. Other languages may need to be checked as well.
Sorry, something went wrong.
Going to close this as #5171 fixes the indentation for empty struct comments and #5091 fixes the format_code_in_doc_comments=true issue.
format_code_in_doc_comments=true
No branches or pull requests
Code:
Formatting with
rustfmt foo.rs
:I expected rustfmt to leave the code unmodified.
Code:
Formatting with
rustfmt format_code_in_doc_comments=true src/foo.rs
:I expected rustfmt to leave the code unmodified.
The text was updated successfully, but these errors were encountered: