]> git.lizzy.rs Git - rust.git/commitdiff
Address nits for PR for #9629
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 9 Dec 2013 17:45:13 +0000 (12:45 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Mon, 9 Dec 2013 17:45:13 +0000 (12:45 -0500)
src/librustc/middle/borrowck/doc.rs
src/librustc/middle/borrowck/mod.rs

index 768d1dbb803a26a82cf0e79c51daa5784fb47215..3bc725c355d34b032ab32ca02757e9d6059fa5fc 100644 (file)
@@ -650,7 +650,7 @@ fn inc_and_get<'a>(p: &'a mut Point) -> &'a int {
 
 Let's examine the two numbered clauses:
 
-Clause (1) specifies that tThe lifetime of the loan (`LT`) cannot
+Clause (1) specifies that the lifetime of the loan (`LT`) cannot
 exceed the lifetime of the `&mut` pointer (`LT'`). The reason for this
 is that the `&mut` pointer is guaranteed to be the only legal way to
 mutate its referent -- but only for the lifetime `LT'`.  After that
index 044d7d566ab8e277a22d0a7ce7ffa9c342985387..7283374936167760ce6748496b76d7ffe80f5ca6 100644 (file)
@@ -671,7 +671,7 @@ pub fn bckerr_to_str(&self, err: BckError) -> ~str {
                 // supposed to be going away.
                 format!("unsafe borrow of aliasable, const value")
             }
-            err_borrowed_pointer_too_short(_, _, r) => {
+            err_borrowed_pointer_too_short(..) => {
                 let descr = match opt_loan_path(err.cmt) {
                     Some(lp) => format!("`{}`", self.loan_path_to_str(lp)),
                     None => self.cmt_to_str(err.cmt),