]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/arithmetic.rs
Auto merge of #4551 - mikerite:fix-ice-reporting, r=llogiq
[rust.git] / clippy_lints / src / arithmetic.rs
index d94cd668bddc6db21adf6a29fb0bef2052ecaba3..9e0d114569e8af86572acb51e3e5a5a449c3e5be 100644 (file)
@@ -16,7 +16,8 @@
     ///
     /// **Example:**
     /// ```rust
-    /// a + 1
+    /// # let a = 0;
+    /// a + 1;
     /// ```
     pub INTEGER_ARITHMETIC,
     restriction,
@@ -33,7 +34,8 @@
     ///
     /// **Example:**
     /// ```rust
-    /// a + 1.0
+    /// # let a = 0.0;
+    /// a + 1.0;
     /// ```
     pub FLOAT_ARITHMETIC,
     restriction,