Warn methods in doc comments written as fun()
instead of fun
#1750
Labels
A-documentation
Area: Adding or improving documentation
L-style
Lint: Belongs in the style lint group
S-needs-discussion
Status: Needs further discussion before merging or work can be started
T-AST
Type: Requires working with the AST
According to #41771 (comment), the current convention for rustdoc is to write methods without any trailing parentheses. For example, the comment "Resizes the
Vec
in-place so thatlen()
is equal tonew_len
" should really be "Resizes theVec
in-place so thatlen
is equal tonew_len
".Would be nice if we had some way for clippy to warn about this convention.
The text was updated successfully, but these errors were encountered: