use std::f64::consts as f64;
declare_clippy_lint! {
- /// **What it does:** Checks for floating point literals that approximate
+ /// ### What it does
+ /// Checks for floating point literals that approximate
/// constants which are defined in
/// [`std::f32::consts`](https://doc.rust-lang.org/stable/std/f32/consts/#constants)
/// or
/// [`std::f64::consts`](https://doc.rust-lang.org/stable/std/f64/consts/#constants),
/// respectively, suggesting to use the predefined constant.
///
- /// **Why is this bad?** Usually, the definition in the standard library is more
+ /// ### Why is this bad?
+ /// Usually, the definition in the standard library is more
/// precise than what people come up with. If you find that your definition is
/// actually more precise, please [file a Rust
/// issue](https://github.com/rust-lang/rust/issues).
///
- /// **Known problems:** None.
- ///
- /// **Example:**
+ /// ### Example
/// ```rust
/// let x = 3.14;
/// let y = 1_f64 / x;