Skip to content

Commit

Permalink
Merge pull request #1419 from dtolnay/expectedsemi
Browse files Browse the repository at this point in the history
Improve error message on missing `;` between statements
  • Loading branch information
dtolnay committed Mar 22, 2023
2 parents fd18254 + 69c5efc commit d12db40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub(crate) mod parsing {
if input.is_empty() {
break;
} else if requires_semicolon {
return Err(input.error("unexpected token"));
return Err(input.error("unexpected token, expected `;`"));
}
}
Ok(stmts)
Expand Down

0 comments on commit d12db40

Please sign in to comment.