From e305b0730fedfe3fa8b54dbb285f498a3277baa9 Mon Sep 17 00:00:00 2001 From: y21 <30553356+y21@users.noreply.github.com> Date: Mon, 12 Jun 2023 00:20:54 +0200 Subject: [PATCH] fix docs --- clippy_lints/src/redundant_closure_call.rs | 8 ++++---- 1 file 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>,