mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
rustc: Typo: mutabliity -> mutability
This commit is contained in:
parent
3ae9ca444c
commit
ed96688be5
|
@ -595,7 +595,7 @@ fn is_ident(token.token t) -> bool {
|
|||
ret spanned(lo, tys.span, rec(idents=ids, types=tys.node));
|
||||
}
|
||||
|
||||
impure fn parse_mutabliity(parser p) -> ast.mutability {
|
||||
impure fn parse_mutability(parser p) -> ast.mutability {
|
||||
if (p.peek() == token.MUTABLE) {
|
||||
p.bump();
|
||||
ret ast.mut;
|
||||
|
@ -604,7 +604,7 @@ fn is_ident(token.token t) -> bool {
|
|||
}
|
||||
|
||||
impure fn parse_field(parser p) -> ast.field {
|
||||
auto m = parse_mutabliity(p);
|
||||
auto m = parse_mutability(p);
|
||||
auto i = parse_ident(p);
|
||||
expect(p, token.EQ);
|
||||
auto e = parse_expr(p);
|
||||
|
@ -650,7 +650,7 @@ fn is_ident(token.token t) -> bool {
|
|||
case (token.TUP) {
|
||||
p.bump();
|
||||
impure fn parse_elt(parser p) -> ast.elt {
|
||||
auto m = parse_mutabliity(p);
|
||||
auto m = parse_mutability(p);
|
||||
auto e = parse_expr(p);
|
||||
ret rec(mut=m, expr=e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue