Skip to content

Commit

Permalink
Address nits for PR for rust-lang#9629
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Dec 9, 2013
1 parent 22f14fb commit 9f7baed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/middle/borrowck/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ The rule for mutable borrowed pointers is as follows:
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
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/borrowck/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ impl BorrowckCtxt {
// 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),
Expand Down

1 comment on commit 9f7baed

@nikomatsakis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=pnkfelix

Please sign in to comment.