about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/excessive_precision.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/clippy_lints/src/excessive_precision.rs b/clippy_lints/src/excessive_precision.rs
index ff678925d8f..7d72f417b2a 100644
--- a/clippy_lints/src/excessive_precision.rs
+++ b/clippy_lints/src/excessive_precision.rs
@@ -109,10 +109,9 @@ impl ExcessivePrecision {
     }
 }
 
-#[allow(clippy::doc_markdown)]
 /// Should we exclude the float because it has a `.0` or `.` suffix
-/// Ex 1_000_000_000.0
-/// Ex 1_000_000_000.
+/// Ex `1_000_000_000.0`
+/// Ex `1_000_000_000.`
 fn dot_zero_exclusion(s: &str) -> bool {
     if let Some(after_dec) = s.split('.').nth(1) {
         let mut decpart = after_dec.chars().take_while(|c| *c != 'e' || *c != 'E');