-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use ///
for all docs
#44
Comments
So as a result, if you want to generate line doc comments with let doc = " a\n b";
let lines = doc.lines();
quote! {
#( #[doc = #lines] )*
struct Foo;
} |
The rules for turning an arbitrary multi-line doc into multiple single-line doc, without breaking rustdoc's or markdown's interpretation of the text, is absurdly complicated. Eventually it would be good to develop logic to handle that but it will be an extremely involved change -- not a matter of |
Understood, the example above is just a workaround that is often usable "downstream". |
Makes sense, thanks! Yeah it's a useful suggestion especially if someone is just concerned with a subset of possible markdown, such as paragraphs of text with no indented lists or code blocks. |
Hi! Is there any reason why multi-line docs are formatted using
/**
?For example, the following code:
is being formatted as
and I'd like it to be
The text was updated successfully, but these errors were encountered: