aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-05-10 11:55:32 -0700
committerGraydon Hoare <[email protected]>2011-05-13 17:35:12 -0700
commit6a53e39e710d4a31785015d042cc491692954ab7 (patch)
tree892b61fa3fcb7799e10ecba61d54837da4cbdd11 /src/comp/front/parser.rs
parentStarting on support for anonymous objects. Just syntax so far. (diff)
downloadrust-6a53e39e710d4a31785015d042cc491692954ab7.tar.xz
rust-6a53e39e710d4a31785015d042cc491692954ab7.zip
Correct capitalization of "Option".
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index f395ea16..cb7435d8 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -795,7 +795,6 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
} else {
unexpected(p, p.peek());
}
-
}
ex = ast::expr_rec(fields, base, p.get_ann());
@@ -836,9 +835,9 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
hi = p.get_hi_pos();
expect(p, token.RBRACE);
- // fields and methods may be *additional* or *overriding* fields
- // and methods if there's a with_obj, or they may be the *only*
- // fields and methods if there's no with_obj.
+ // fields and methods may be *additional* or *overriding* fields and
+ // methods if there's a with_obj, or they may be the *only* fields and
+ // methods if there's no with_obj.
// We don't need to pull ".node" out of fields because it's not a
// "spanned".