Skip to content

Commit 2e1b98d

Browse files
committed
Change borrowck error 'the the block' -> 'the block'
1 parent 1f32c2c commit 2e1b98d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rustc/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn explain_region(cx: ctxt, region: ty::region) -> ~str {
5050
some(ast_map::node_block(blk)) => {
5151
fmt!{"the lifetime %s as defined on %s",
5252
bound_region_to_str(cx, br),
53-
explain_span(cx, ~"the block", blk.span)}
53+
explain_span(cx, ~"block", blk.span)}
5454
}
5555
some(_) | none => {
5656
// this really should not happen

src/test/compile-fail/borrowck-confuse-region.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
fn get() -> &int {
99
let x = 3;
1010
return &x;
11-
//~^ ERROR illegal borrow: borrowed pointer must be valid for the lifetime & as defined on the the block at 8:17, but the borrowed value is only valid for the block at 8:17
11+
//~^ ERROR illegal borrow: borrowed pointer must be valid for the lifetime & as defined on the block at 8:17, but the borrowed value is only valid for the block at 8:17
1212
}
1313

14-
fn main() {}
14+
fn main() {}

0 commit comments

Comments
 (0)