about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-26 05:51:40 +0000
committerbors <bors@rust-lang.org>2021-07-26 05:51:40 +0000
commit9cf1944217f8b0183d44a5a36eaec065f2a0b7aa (patch)
tree4ec64d37500286bee7213810cc7a2f10d138a841
parent3bcce82d14b85996c134420ac3c6790a410f7842 (diff)
parentd1872194c8305635aa850ceb77d734609731d66f (diff)
downloadrust-9cf1944217f8b0183d44a5a36eaec065f2a0b7aa.tar.gz
rust-9cf1944217f8b0183d44a5a36eaec065f2a0b7aa.zip
Auto merge of #87439 - ThibsG:FixDocTypo, r=jonas-schievink
Fix doc typo

Just a typo in doc that has a bad rendering here: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_typeck/expr_use_visitor/struct.ExprUseVisitor.html#method.walk_captures
-rw-r--r--compiler/rustc_typeck/src/expr_use_visitor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/expr_use_visitor.rs b/compiler/rustc_typeck/src/expr_use_visitor.rs
index 806f1a2711c..6c76a8960bb 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)