]> git.lizzy.rs Git - rust.git/commitdiff
fix error message
authorFrank <lifrank@grinnell.edu>
Thu, 24 Sep 2020 21:43:29 +0000 (16:43 -0500)
committerFrank <lifrank@grinnell.edu>
Fri, 25 Sep 2020 16:09:04 +0000 (11:09 -0500)
clippy_lints/src/disallowed_method.rs

index 7638019340f0e19ef701c98cdb002cde29d7d92d..eea369924a6cfdd44f280a7f0d6e80e3f9c76879 100644 (file)
     ///
     /// **Example:**
     ///
-    /// ```rust
+    /// ```rust,ignore
     /// // example code where clippy issues a warning
     /// foo.bad_method(); // Foo is disallowed
     /// ```
     /// Use instead:
-    /// ```rust
+    /// ```rust,ignore
     /// // example code which does not raise clippy warning
-    /// GoodStruct.bad_method(); // not disallowed
+    /// goodStruct.bad_method(); // not disallowed
     /// ```
     pub DISALLOWED_METHOD,
     nursery,