syntax: Eliminate 'mutable' keyword. Closes #2254
This commit is contained in:
parent
734494a04d
commit
7235f3cee2
9 changed files with 9 additions and 9 deletions
|
@ -1484,7 +1484,7 @@ fn parse_let(p: parser) -> @ast::decl {
|
|||
fn parse_instance_var(p:parser, pr: ast::privacy) -> @ast::class_member {
|
||||
let mut is_mutbl = ast::class_immutable;
|
||||
let lo = p.span.lo;
|
||||
if eat_word(p, "mut") || eat_word(p, "mutable") {
|
||||
if eat_word(p, "mut") {
|
||||
is_mutbl = ast::class_mutable;
|
||||
}
|
||||
if !is_plain_ident(p.token) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue