diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-16 14:41:32 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-16 14:41:32 -0800 |
| commit | b655fb9ea7d81d03cf049ae32babda19003631e5 (patch) | |
| tree | 2bbf62e5072db9e28c10ca9d7efe668a2678cbdc /src/comp/syntax/parse/parser.rs | |
| parent | 1d361f680610bb0f75f80b8fc8ca03d04b13577b (diff) | |
| download | rust-b655fb9ea7d81d03cf049ae32babda19003631e5.tar.gz rust-b655fb9ea7d81d03cf049ae32babda19003631e5.zip | |
Replace 'mutable?' with 'const'
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 4e393777d2a..3b2ba62ca93 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -746,8 +746,7 @@ fn parse_path_and_ty_param_substs(p: parser) -> ast::path { fn parse_mutability(p: parser) -> ast::mutability { if eat_word(p, "mutable") { - if p.peek() == token::QUES { p.bump(); ast::maybe_mut } - else { ast::mut } + ast::mut } else if eat_word(p, "const") { ast::maybe_mut } else { |
