Improve lint doc consistency

This commit is contained in:
Serial
2022-06-05 15:24:41 -04:00
parent 3e52dee646
commit 9aeed6b9bf
64 changed files with 631 additions and 437 deletions

View File

@@ -15,11 +15,12 @@ declare_clippy_lint! {
///
/// ### Example
/// ```rust
/// // Bad
/// let x = 3 / 2;
/// println!("{}", x);
/// ```
///
/// // Good
/// Use instead:
/// ```rust
/// let x = 3f32 / 2f32;
/// println!("{}", x);
/// ```