-
Notifications
You must be signed in to change notification settings - Fork 601
The redundant punctuation in "expected()" #1433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Perhaps “Expected: an expression, found: EOF” is a more appropriate format. Please review it @alamb |
It should be good to remove the redundant |
I have checked all places that use |
@Fischer0522 This issue can be closed now. |
The
expected()
function will format the message in accordance withformat!("Expected: {expected}, found: {found}")
. However, whenexpected()
is called byparse_prefix()
at line 1254 in mod.rs, the parameter is "an expression:". Consequently, the formatted message is "Expected: an expression:, found: EOF". The ":," appears redundant.Related code:
The text was updated successfully, but these errors were encountered: