Skip to content

Commit b7d9af2

Browse files
committed
Fix examples
1 parent 139f2a3 commit b7d9af2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

clippy_lints/src/let_underscore.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,20 @@ declare_clippy_lint! {
6969
///
7070
/// ### Example
7171
/// ```rust
72-
/// async fn foo() -> Result<(), ()> { }
72+
/// async fn foo() -> Result<(), ()> {
73+
/// Ok(())
74+
/// }
7375
/// let _ = foo();
7476
/// ```
7577
///
7678
/// Use instead:
7779
/// ```rust
80+
/// # async fn context() {
81+
/// async fn foo() -> Result<(), ()> {
82+
/// Ok(())
83+
/// }
7884
/// let _ = foo().await;
85+
/// # }
7986
/// ```
8087
#[clippy::version = "1.66"]
8188
pub LET_UNDERSCORE_FUTURE,

0 commit comments

Comments
 (0)