mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Merge pull request #3090 from matthiaskrgr/new_without_default_highlight
docs: make example in new_without_default lint syntax highlighted
This commit is contained in:
commit
43c629ebac
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user