Skip to content

Commit f99142b

Browse files
committed
Fix comments
1 parent d3e9881 commit f99142b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/librustc_mir/borrow_check.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,10 @@ impl<'c, 'b, 'a: 'b+'c, 'gcx, 'tcx: 'a> MirBorrowckCtxt<'c, 'b, 'a, 'gcx, 'tcx>
11691169
err.emit();
11701170
}
11711171

1172-
/// Finds the span of arguments of aclosure (within `maybe_closure_span`) and its usage of
1172+
/// Finds the span of arguments of a closure (within `maybe_closure_span`) and its usage of
11731173
/// the local assigned at `location`.
1174+
/// This is done by searching in statements succeeding `location`
1175+
/// and originating from `maybe_closure_span`.
11741176
fn find_closure_span(
11751177
&self,
11761178
maybe_closure_span: Span,

src/test/ui/borrowck/borrowck-closures-two-mut.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//

0 commit comments

Comments
 (0)