fix code blocks in doc comments inconsistently using 3 or 4 spaces of indentation#13261
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Centri3 (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
|
Nice catch, thank you for the PR :D cc: @Alexendoo this adds a slight modification to the metadata collector. You'll likely have to rebase your PR and copy the changes as well #13221 Roses are red, |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
The metadata collector script was treating the space lines all start with as indentation. This caused code block's triple backticks to get a space in front of it, like this:
Code after that that is indented with 4 spaces will only have 3 of those rendered.
Example (taken from here):
Also added 'compile_fail' alongside the other rustdoc directives (second code block here had no highlighting), fixed a doc comment using 'rs' instead of 'rust' and removed some spaces causing an extra missing space of indentation (see second code block here).
changelog: none