1
Fork 0

Adjust the error messages to match the pattern "expected foo, found bar"

Closes #8492
This commit is contained in:
Jonas Hietala 2014-08-23 12:41:32 +02:00
parent 2e5aea65cd
commit 9968ae2554
118 changed files with 266 additions and 266 deletions

View file

@ -200,7 +200,7 @@ impl<'a> Parser<'a> {
self.cur.next();
}
Some((_, other)) => {
self.err(format!("expected `{}` but found `{}`",
self.err(format!("expected `{}`, found `{}`",
c,
other).as_slice());
}