-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Multiline module level docs cannot handle /*
in a string
#129685
Comments
In your example, the Your second comment can be used OK as is - example. The reference (https://doc.rust-lang.org/reference/comments.html) makes no mention of markdown syntax when defining comments, so I would not expect presence of a string within backticks to make any difference to parsing. @rustbot label -C-bug |
That's fair, so then would it be possible to add a way to escape the characters in a way that does not affect the final output? I can use |
This can technically be done as below, although it does look rather odd. Considering that the convention is to use /*!
* ```
* # // /*
* let thing = "**/*.css";
* ```
*/ |
I see. Okay well for now I've switched to |
I tried this code:
I expected to see this happen: The docs to compile.
Instead, this happened:
The docs fail to compile with this message:
Meta
rustc --version --verbose
:I've also reproduced on nightly.
The text was updated successfully, but these errors were encountered: