diff --git a/clippy_lints/src/let_underscore.rs b/clippy_lints/src/let_underscore.rs index 05be1743d..8da7b8c35 100644 --- a/clippy_lints/src/let_underscore.rs +++ b/clippy_lints/src/let_underscore.rs @@ -69,13 +69,20 @@ declare_clippy_lint! { /// /// ### Example /// ```rust - /// async fn foo() -> Result<(), ()> { } + /// async fn foo() -> Result<(), ()> { + /// Ok(()) + /// } /// let _ = foo(); /// ``` /// /// Use instead: /// ```rust + /// # async fn context() { + /// async fn foo() -> Result<(), ()> { + /// Ok(()) + /// } /// let _ = foo().await; + /// # } /// ``` #[clippy::version = "1.66"] pub LET_UNDERSCORE_FUTURE,