clean up a few lint docs

This commit is contained in:
Matthias Krüger
2020-03-18 02:50:39 +01:00
parent 23549a8c36
commit 2204bf20ae
6 changed files with 14 additions and 10 deletions

View File

@@ -23,11 +23,11 @@ declare_clippy_lint! {
///
/// **Example:**
/// ```rust
/// // Bad
/// let x = 3.14;
/// let y = 1_f64 / x;
///
/// // Good
/// ```
/// Use predefined constants instead:
/// ```rust
/// let x = std::f32::consts::PI;
/// let y = std::f64::consts::FRAC_1_PI;
/// ```