-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationL-styleLint: Belongs in the style lint groupLint: Belongs in the style lint groupS-needs-discussionStatus: Needs further discussion before merging or work can be startedStatus: Needs further discussion before merging or work can be startedT-ASTType: Requires working with the ASTType: Requires working with the AST
Description
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 that len()
is equal to new_len
" should really be "Resizes the Vec
in-place so that len
is equal to new_len
".
Would be nice if we had some way for clippy to warn about this convention.
Metadata
Metadata
Assignees
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationL-styleLint: Belongs in the style lint groupLint: Belongs in the style lint groupS-needs-discussionStatus: Needs further discussion before merging or work can be startedStatus: Needs further discussion before merging or work can be startedT-ASTType: Requires working with the ASTType: Requires working with the AST