about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@rockstargirl.org>2013-01-04 09:52:07 -0500
committerLindsey Kuper <lindsey@rockstargirl.org>2013-01-08 14:31:58 -0500
commit816cb8c5350084e04770b9c3a133400923bd2e1b (patch)
treec6323c01c79fca95a4ba81438167f4651aca7c22 /src/libsyntax/parse/parser.rs
parent2d9b1fee8f623b2d6724084b8506f3309f380d24 (diff)
downloadrust-816cb8c5350084e04770b9c3a133400923bd2e1b.tar.gz
rust-816cb8c5350084e04770b9c3a133400923bd2e1b.zip
Rename identifiers that still use 'alt' to use 'match'
This'll be less confusing for anyone who works on match in future.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index f85ca3fefef..f32a782622a 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -940,7 +940,7 @@ impl Parser {
         } else if self.eat_keyword(~"loop") {
             return self.parse_loop_expr();
         } else if self.eat_keyword(~"match") {
-            return self.parse_alt_expr();
+            return self.parse_match_expr();
         } else if self.eat_keyword(~"fn") {
             let opt_proto = self.parse_fn_ty_proto();
             let proto = match opt_proto {
@@ -1722,7 +1722,7 @@ impl Parser {
         return expr_rec(fields, base);
     }
 
-    fn parse_alt_expr() -> @expr {
+    fn parse_match_expr() -> @expr {
         let lo = self.last_span.lo;
         let discriminant = self.parse_expr();
         self.expect(token::LBRACE);