From d1872194c8305635aa850ceb77d734609731d66f Mon Sep 17 00:00:00 2001 From: ThibsG Date: Sat, 24 Jul 2021 20:49:20 +0200 Subject: [PATCH] Fix doc typo --- compiler/rustc_typeck/src/expr_use_visitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_typeck/src/expr_use_visitor.rs b/compiler/rustc_typeck/src/expr_use_visitor.rs index 806f1a2711c01..6c76a8960bbe1 100644 --- a/compiler/rustc_typeck/src/expr_use_visitor.rs +++ b/compiler/rustc_typeck/src/expr_use_visitor.rs @@ -667,7 +667,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> { /// When the current body being handled is a closure, then we must make sure that /// - The parent closure only captures Places from the nested closure that are not local to it. /// - /// In the following example the closures `c` only captures `p.x`` even though `incr` + /// In the following example the closures `c` only captures `p.x` even though `incr` /// is a capture of the nested closure /// /// ```rust,ignore(cannot-test-this-because-pseudo-code)