summary refs log tree commit diff
path: root/src/comp/syntax
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-07-26 14:53:01 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-07-26 14:53:01 +0200
commitc0976ad70b86eb419f3c379d3a7bd5b8b6dc2512 (patch)
tree99d21db7399f41ba72eff1ec6c590f75c1e188dc /src/comp/syntax
parentf8968d1e719ca8e80429e9f26f75941ccef3c346 (diff)
downloadrust-c0976ad70b86eb419f3c379d3a7bd5b8b6dc2512.tar.gz
rust-c0976ad70b86eb419f3c379d3a7bd5b8b6dc2512.zip
Properly parse 'auto' for loop variable types
Diffstat (limited to 'src/comp/syntax')
-rw-r--r--src/comp/syntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 43f8a62b23d..16f91c403ab 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1354,7 +1354,7 @@ fn parse_else_expr(&parser p) -> @ast::expr {
 }
 
 fn parse_head_local(&parser p) -> @ast::local {
-    if (is_word(p, "auto")) {
+    if (eat_word(p, "auto")) {
         ret parse_auto_local(p);
     } else {
         ret parse_typed_local(p);