diff options
| author | y21 <30553356+y21@users.noreply.github.com> | 2023-06-12 00:20:54 +0200 |
|---|---|---|
| committer | y21 <30553356+y21@users.noreply.github.com> | 2023-06-12 00:20:54 +0200 |
| commit | e305b0730fedfe3fa8b54dbb285f498a3277baa9 (patch) | |
| tree | 1c4cfe954e3473c9549ebea12e7efe8cd58da2bd | |
| parent | 7280ad9f7b43755703610ed13dc60a58144a1a0f (diff) | |
| download | rust-e305b0730fedfe3fa8b54dbb285f498a3277baa9.tar.gz rust-e305b0730fedfe3fa8b54dbb285f498a3277baa9.zip | |
fix docs
| -rw-r--r-- | clippy_lints/src/redundant_closure_call.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/redundant_closure_call.rs b/clippy_lints/src/redundant_closure_call.rs index 4e1ffc2fe37..d979087a6d7 100644 --- a/clippy_lints/src/redundant_closure_call.rs +++ b/clippy_lints/src/redundant_closure_call.rs @@ -74,7 +74,7 @@ fn is_async_closure(body: &hir::Body<'_>) -> bool { } /// Tries to find the innermost closure: -/// ```rust +/// ```rust,ignore /// (|| || || || 42)()()()() /// ^^^^^^^^^^^^^^ given this nested closure expression /// ^^^^^ we want to return this closure @@ -110,10 +110,10 @@ fn find_innermost_closure<'tcx>( } /// "Walks up" the chain of calls to find the outermost call expression, and returns the depth: -/// ```rust +/// ```rust,ignore /// (|| || || 3)()()() -/// ^^ this is the call expression we were given -/// ^^ this is what we want to return (and the depth is 3) +/// ^^ this is the call expression we were given +/// ^^ this is what we want to return (and the depth is 3) /// ``` fn get_parent_call_exprs<'tcx>( cx: &LateContext<'tcx>, |
