File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ declare_clippy_lint! {
185185 /// ### Examples
186186 /// ```rust
187187 /// // this could be annotated with `#[must_use]`.
188- /// fn id<T>(t: T) -> T { t }
188+ /// pub fn id<T>(t: T) -> T { t }
189189 /// ```
190190 #[ clippy:: version = "1.40.0" ]
191191 pub MUST_USE_CANDIDATE ,
Original file line number Diff line number Diff line change @@ -340,8 +340,9 @@ declare_clippy_lint! {
340340
341341declare_clippy_lint ! {
342342 /// ### What it does
343- /// Checks for methods with certain name prefixes and which
344- /// doesn't match how self is taken. The actual rules are:
343+ /// Checks for methods with certain name prefixes or suffixes, and which
344+ /// do not adhere to standard conventions regarding how `self` is taken.
345+ /// The actual rules are:
345346 ///
346347 /// |Prefix |Postfix |`self` taken | `self` type |
347348 /// |-------|------------|-------------------------------|--------------|
You can’t perform that action at this time.
0 commit comments