X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools%2Fclippy%2Fclippy_lints%2Fsrc%2Fuse_self.rs;h=f8e1021af0ea11b9bd46acc78dfe62ea9ea4ccaf;hb=515e2a2cda88e0213ab24dc97e75794eac42ebfe;hp=09d671e11184d6e2e456909b3326af74b6ce3c04;hpb=fa723160318fac5f3fa6f4141cfc41c0606a3008;p=rust.git diff --git a/src/tools/clippy/clippy_lints/src/use_self.rs b/src/tools/clippy/clippy_lints/src/use_self.rs index 09d671e1118..f8e1021af0e 100644 --- a/src/tools/clippy/clippy_lints/src/use_self.rs +++ b/src/tools/clippy/clippy_lints/src/use_self.rs @@ -34,7 +34,7 @@ /// /// ### Example /// ```rust - /// struct Foo {} + /// struct Foo; /// impl Foo { /// fn new() -> Foo { /// Foo {} @@ -43,7 +43,7 @@ /// ``` /// could be /// ```rust - /// struct Foo {} + /// struct Foo; /// impl Foo { /// fn new() -> Self { /// Self {}