diff --git a/clippy_lints/src/await_holding_invalid.rs b/clippy_lints/src/await_holding_invalid.rs index 022f82ebf51..5c29afb947b 100644 --- a/clippy_lints/src/await_holding_invalid.rs +++ b/clippy_lints/src/await_holding_invalid.rs @@ -159,7 +159,7 @@ declare_clippy_lint! { /// struct OtherCustomLockType; /// async fn foo() { /// let _x = CustomLockType; - /// let _y = CustomLockType; + /// let _y = OtherCustomLockType; /// baz().await; // Lint violation /// } /// ```