about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/floating_point_arithmetic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/floating_point_arithmetic.rs b/clippy_lints/src/floating_point_arithmetic.rs
index f2e6bd7da17..de2c245f451 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