mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
rustc: "expectied" -> "expected" in parser.rs; also say what was found
This commit is contained in:
parent
ccc21fd4da
commit
0847ff7d42
@ -1025,8 +1025,10 @@ impure fn parse_item(parser p) -> tup(ast.ident, @ast.item) {
|
||||
case (token.TYPE) {
|
||||
ret parse_item_type(p);
|
||||
}
|
||||
case (?t) {
|
||||
p.err("expected item but found " + token.to_str(t));
|
||||
}
|
||||
}
|
||||
p.err("expectied item");
|
||||
fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user