Make docs more consistent
This commit is contained in:
parent
5920fa3516
commit
cfd0f5592b
29 changed files with 110 additions and 69 deletions
|
|
@ -25,12 +25,13 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// ### Examples
|
||||
/// ```rust
|
||||
///
|
||||
/// // Bad
|
||||
/// let foo = "foo";
|
||||
/// format!("{}", foo);
|
||||
/// ```
|
||||
///
|
||||
/// // Good
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
/// let foo = "foo";
|
||||
/// foo.to_owned();
|
||||
/// ```
|
||||
#[clippy::version = "pre 1.29.0"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue