docs: make example in new_without_default lint syntax highlighted

This commit is contained in:
Matthias Krüger 2018-08-27 17:35:30 +02:00
parent 628934424e
commit fc31dc01de
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ use crate::utils::sugg::DiagnosticBuilderExt;
///
/// **Example:**
///
/// ```rust,ignore
/// ```rust
/// struct Foo(Bar);
///
/// impl Foo {
@ -63,7 +63,7 @@ declare_clippy_lint! {
///
/// **Example:**
///
/// ```rust,ignore
/// ```rust
/// struct Foo;
///
/// impl Foo {