-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
doc_markdown: suggestion looks like double backticks needed #8002
Comments
Hey, the suggestion intentionally has two backticks to make the fix automatically applicable. Clippy suggests writing @rustbot label -C-bug +C-enhancement +good-first-issue |
Thanks for the explanation, that makes sense. I can try to do what you suggested. Is there a facility to test the automated update suggestions in addition to the compiler output uitests? |
Sure, that would be wonderful. The lint is currently emitted here: rust-clippy/clippy_lints/src/doc.rs Lines 773 to 781 in 827fd50
The You can claim the issue by commenting |
For example:
Since all "try" hints are already enclosed in backticks, we end up with double backticks in the suggestion, which looks like it could be actual markup (especially if you also use ReST).
I suggest to omit the backticks in the hint, leading to
try: `TwinCAT`
which together with the error text makes it obvious what is meant.The text was updated successfully, but these errors were encountered: