File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ declare_clippy_lint! {
185
185
/// ### Examples
186
186
/// ```rust
187
187
/// // this could be annotated with `#[must_use]`.
188
- /// fn id<T>(t: T) -> T { t }
188
+ /// pub fn id<T>(t: T) -> T { t }
189
189
/// ```
190
190
#[ clippy:: version = "1.40.0" ]
191
191
pub MUST_USE_CANDIDATE ,
Original file line number Diff line number Diff line change @@ -340,8 +340,9 @@ declare_clippy_lint! {
340
340
341
341
declare_clippy_lint ! {
342
342
/// ### 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:
345
346
///
346
347
/// |Prefix |Postfix |`self` taken | `self` type |
347
348
/// |-------|------------|-------------------------------|--------------|
You can’t perform that action at this time.
0 commit comments