about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/await_holding_invalid.rs2
1 files changed, 1 insertions, 1 deletions
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
     /// }
     /// ```