mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Auto merge of #10425 - smoelius:docs, r=llogiq
Two small documentation improvements
The `wrong_self_convention` changes are for grammar and accuracy.
The `must_use_candidate` change is because that lint flags only exported functions: 8b65632b6e/clippy_lints/src/functions/must_use.rs (L27-L31)
changelog: `wrong_self_convention` and `must_use_candidate` documentation improvements
This commit is contained in:
commit
2d9ca944fa
@ -185,7 +185,7 @@ declare_clippy_lint! {
|
||||
/// ### Examples
|
||||
/// ```rust
|
||||
/// // this could be annotated with `#[must_use]`.
|
||||
/// fn id<T>(t: T) -> T { t }
|
||||
/// pub fn id<T>(t: T) -> T { t }
|
||||
/// ```
|
||||
#[clippy::version = "1.40.0"]
|
||||
pub MUST_USE_CANDIDATE,
|
||||
|
@ -340,8 +340,9 @@ declare_clippy_lint! {
|
||||
|
||||
declare_clippy_lint! {
|
||||
/// ### What it does
|
||||
/// Checks for methods with certain name prefixes and which
|
||||
/// doesn't match how self is taken. The actual rules are:
|
||||
/// Checks for methods with certain name prefixes or suffixes, and which
|
||||
/// do not adhere to standard conventions regarding how `self` is taken.
|
||||
/// The actual rules are:
|
||||
///
|
||||
/// |Prefix |Postfix |`self` taken | `self` type |
|
||||
/// |-------|------------|-------------------------------|--------------|
|
||||
|
Loading…
Reference in New Issue
Block a user