Lint against tabs in doc comments #4623
Labels
A-lint
Area: New lints
good first issue
These issues are a good way to get started with Clippy
L-style
Lint: Belongs in the style lint group
Mixing spaces and tabs is always a bad idea but for doc comments it's especially bad because the rendered output might be different when using tabs or spaces.
See #4622
The actual output is/was

But the output should be

The only difference is the indentation:
With tabs:
(depending on your editor settings the
suffix ...
is aligned with the-
or left of it)With spaces (and without leading whitespace):
I'm not sure if tabs should be linted in normal rust code too but IMO it is necessary in doc comments.
The text was updated successfully, but these errors were encountered: