diff --git a/clippy_lints/src/floating_point_arithmetic.rs b/clippy_lints/src/floating_point_arithmetic.rs index f2e6bd7da176..de2c245f451d 100644 --- a/clippy_lints/src/floating_point_arithmetic.rs +++ b/clippy_lints/src/floating_point_arithmetic.rs @@ -76,12 +76,12 @@ declare_clippy_lint! { /// -a /// } else { /// a - /// } + /// }; /// let _ = if a < 0.0 { /// a /// } else { /// -a - /// } + /// }; /// ``` /// /// is better expressed as