Address nits for PR for #9629

This commit is contained in:
Niko Matsakis 2013-12-09 12:45:13 -05:00
parent 22f14fb27f
commit 9f7baedc62
2 changed files with 2 additions and 2 deletions

View 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

View 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),