]> git.lizzy.rs Git - rust.git/commitdiff
Fix comments
authorShotaro Yamada <sinkuu@sinkuu.xyz>
Mon, 13 Nov 2017 03:21:05 +0000 (12:21 +0900)
committerShotaro Yamada <sinkuu@sinkuu.xyz>
Mon, 13 Nov 2017 03:25:13 +0000 (12:25 +0900)
src/librustc_mir/borrow_check.rs
src/test/ui/borrowck/borrowck-closures-two-mut.rs

index 6d4f521e99e22091f8cc7a8292a482064cf09954..b723b86776b11cab5c2830cfd3a801630068f02d 100644 (file)
@@ -1169,8 +1169,10 @@ fn report_use_while_mutably_borrowed(&mut self,
         err.emit();
     }
 
-    /// Finds the span of arguments of aclosure (within `maybe_closure_span`) and its usage of
+    /// Finds the span of arguments of a closure (within `maybe_closure_span`) and its usage of
     /// the local assigned at `location`.
+    /// This is done by searching in statements succeeding `location`
+    /// and originating from `maybe_closure_span`.
     fn find_closure_span(
         &self,
         maybe_closure_span: Span,
index 4b6f992f097c2f775510ada28bfcc4ad45a459b5..182b3d75442421f2aa8caf32a463d0181079aec7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //