diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-04-23 13:42:15 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-04-23 15:18:19 +0200 |
| commit | 9053f54498373c8ca799e777d8a979c0d32fbb07 (patch) | |
| tree | b52b29a04aed6a3112f51179d0efd50617c97122 /src/librustsyntax/parse | |
| parent | a872a99bfe400f794171a58fc47025133ce08155 (diff) | |
| download | rust-9053f54498373c8ca799e777d8a979c0d32fbb07.tar.gz rust-9053f54498373c8ca799e777d8a979c0d32fbb07.zip | |
Move map iface over to more `for`-friendly iteration methods
Diffstat (limited to 'src/librustsyntax/parse')
| -rw-r--r-- | src/librustsyntax/parse/token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustsyntax/parse/token.rs b/src/librustsyntax/parse/token.rs index 8e274969551..b31cca12e94 100644 --- a/src/librustsyntax/parse/token.rs +++ b/src/librustsyntax/parse/token.rs @@ -217,7 +217,7 @@ nonetheless valid as identifiers becasue they are unambiguous. "] fn keyword_table() -> hashmap<str, ()> { let keywords = str_hash(); - bad_expr_word_table().keys() {|word| + for bad_expr_word_table().each_key {|word| keywords.insert(word, ()); } let other_keywords = [ |
