aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-04-01 00:00:20 -0400
committerBrian Anderson <[email protected]>2011-04-01 00:05:13 -0400
commit1bc06bc59b048bc803bfd6029c923a73ba2bb3ff (patch)
tree579cb566f48b548077d6c3c870502a1b3c29770e
parentAdd an XFAILed test for treating alts as expressions (diff)
downloadrust-1bc06bc59b048bc803bfd6029c923a73ba2bb3ff.tar.xz
rust-1bc06bc59b048bc803bfd6029c923a73ba2bb3ff.zip
Cleanup typos and newlines
-rw-r--r--src/comp/middle/trans.rs2
-rw-r--r--src/test/run-pass/expr-alt.rs2
-rw-r--r--src/test/run-pass/expr-block-box.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index c04e9748..fca1c6c0 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -5388,7 +5388,7 @@ fn trans_block(@block_ctxt cx, &ast.block b) -> result {
if (ty.type_is_boxed(r_ty)) {
// The value resulting from the block gets copied into an
- // alloca created in an outer scope and it's refcount
+ // alloca created in an outer scope and its refcount
// bumped so that it can escape this block. This means
// that it will definitely live until the end of the
// enclosing scope, even if nobody uses it, which may be
diff --git a/src/test/run-pass/expr-alt.rs b/src/test/run-pass/expr-alt.rs
index 859c5938..22cdf32a 100644
--- a/src/test/run-pass/expr-alt.rs
+++ b/src/test/run-pass/expr-alt.rs
@@ -28,4 +28,4 @@ fn test() {
fn main() {
test();
-} \ No newline at end of file
+}
diff --git a/src/test/run-pass/expr-block-box.rs b/src/test/run-pass/expr-block-box.rs
index cee2a04c..e8ab6209 100644
--- a/src/test/run-pass/expr-block-box.rs
+++ b/src/test/run-pass/expr-block-box.rs
@@ -7,4 +7,4 @@ fn main() {
};
check (*x == 100);
-} \ No newline at end of file
+}