Skip to content

Commit 90ba82b

Browse files
committed
Two small documentation improvements
1 parent 8b65632 commit 90ba82b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clippy_lints/src/functions/mod.rs

+1-1
Original file line numberDiff line numberDiff 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,

clippy_lints/src/methods/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,9 @@ declare_clippy_lint! {
340340

341341
declare_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
/// |-------|------------|-------------------------------|--------------|

0 commit comments

Comments
 (0)