Skip to content

Commit 9cf1944

Browse files
committed
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
2 parents 3bcce82 + d187219 commit 9cf1944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/expr_use_visitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
667667
/// When the current body being handled is a closure, then we must make sure that
668668
/// - The parent closure only captures Places from the nested closure that are not local to it.
669669
///
670-
/// In the following example the closures `c` only captures `p.x`` even though `incr`
670+
/// In the following example the closures `c` only captures `p.x` even though `incr`
671671
/// is a capture of the nested closure
672672
///
673673
/// ```rust,ignore(cannot-test-this-because-pseudo-code)

0 commit comments

Comments
 (0)