Skip to content

Commit e305b07

Browse files
committed
fix docs
1 parent 7280ad9 commit e305b07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/redundant_closure_call.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn is_async_closure(body: &hir::Body<'_>) -> bool {
7474
}
7575

7676
/// Tries to find the innermost closure:
77-
/// ```rust
77+
/// ```rust,ignore
7878
/// (|| || || || 42)()()()()
7979
/// ^^^^^^^^^^^^^^ given this nested closure expression
8080
/// ^^^^^ we want to return this closure
@@ -110,10 +110,10 @@ fn find_innermost_closure<'tcx>(
110110
}
111111

112112
/// "Walks up" the chain of calls to find the outermost call expression, and returns the depth:
113-
/// ```rust
113+
/// ```rust,ignore
114114
/// (|| || || 3)()()()
115-
/// ^^ this is the call expression we were given
116-
/// ^^ this is what we want to return (and the depth is 3)
115+
/// ^^ this is the call expression we were given
116+
/// ^^ this is what we want to return (and the depth is 3)
117117
/// ```
118118
fn get_parent_call_exprs<'tcx>(
119119
cx: &LateContext<'tcx>,

0 commit comments

Comments
 (0)