mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
docs: use_self: hightlight the "should be" code sample as rust code as well.
This commit is contained in:
parent
481f7880df
commit
650eb09981
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ use crate::syntax_pos::symbol::keywords::SelfType;
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// could be
|
/// could be
|
||||||
/// ```
|
/// ```rust
|
||||||
/// struct Foo {}
|
/// struct Foo {}
|
||||||
/// impl Foo {
|
/// impl Foo {
|
||||||
/// fn new() -> Self {
|
/// fn new() -> Self {
|
||||||
|
|
Loading…
Reference in a new issue