Skip to content
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

fix #1060 using parenthesis #1061

Closed
wants to merge 1 commit into from

Conversation

crop2000
Copy link
Contributor

@crop2000 crop2000 commented Oct 7, 2024

rust fails to differentiate between multiplication binary-operator and deference unary-operator, in the context of if-else clauses. because of this we need to wrap if-else clauses in a parenthesis through it becomes clear to the compiler that we expect a return value, and this implies that * means multiplication.

@sletz
Copy link
Member

sletz commented Oct 8, 2024

Thanks!.

@sletz sletz closed this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants