about summary refs log tree commit diff
diff options
context:
space:
mode:
authorboolean_coercion <booleancoercion@gmail.com>2021-02-11 13:15:06 +0200
committerboolean_coercion <booleancoercion@gmail.com>2021-02-12 11:54:22 +0200
commit9194c11d69aa98c9d85fd0979bf9b93d3d7de809 (patch)
tree12f0a5e0c6c0967d4b511c656c8e64f504d9e27b
parentd1a627ab3bd801879a565cc9e68a322d8d28bcbf (diff)
downloadrust-9194c11d69aa98c9d85fd0979bf9b93d3d7de809.tar.gz
rust-9194c11d69aa98c9d85fd0979bf9b93d3d7de809.zip
Fixed doctests that shouldn't have been compiled
-rw-r--r--clippy_lints/src/from_str_radix_10.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/from_str_radix_10.rs b/clippy_lints/src/from_str_radix_10.rs
index 9a8d4542616..53cb1e3ecd9 100644
--- a/clippy_lints/src/from_str_radix_10.rs
+++ b/clippy_lints/src/from_str_radix_10.rs
@@ -19,12 +19,12 @@ declare_clippy_lint! {
     ///
     /// **Example:**
     ///
-    /// ```rust
+    /// ```ignore
     /// let input: &str = get_input();
     /// let num = u16::from_str_radix(input, 10)?;
     /// ```
     /// Use instead:
-    /// ```rust
+    /// ```ignore
     /// let input: &str = get_input();
     /// let num: u16 = input.parse()?;
     /// ```