mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +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
|
||||
/// ```
|
||||
/// ```rust
|
||||
/// struct Foo {}
|
||||
/// impl Foo {
|
||||
/// fn new() -> Self {
|
||||
|
|
Loading…
Reference in a new issue