Repair off-by-one in error message
This commit is contained in:
parent
733037f41b
commit
c51f6b2a4e
|
@ -654,8 +654,8 @@ impl<'t> Parser<'t> {
|
||||||
self.drop();
|
self.drop();
|
||||||
|
|
||||||
if s.len() > 0 {
|
if s.len() > 0 {
|
||||||
let m = format!("Invalid use of pattern binder in target: {:?}", self.peek());
|
return self.error(format!(
|
||||||
return self.error(m);
|
"Invalid use of pattern binder in target: ?{}", s));
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.ateof() {
|
if self.ateof() {
|
||||||
|
|
Loading…
Reference in New Issue