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 operator precedence documentation #7358

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

SpexGuy
Copy link
Contributor

@SpexGuy SpexGuy commented Dec 9, 2020

Thanks to @EleanorNB for pointing this out.

The docs had operator precedence backwards between prefix unary operators and postfix unary operators.
Things like &x.?, -x.*, &T{} all compile, but the previous order in the documentation would say that these require parentheses.

@ghost
Copy link

ghost commented Dec 9, 2020

Every community needs a stickler 😉

@andrewrk
Copy link
Member

andrewrk commented Dec 9, 2020

Thanks @EleanorNB and @SpexGuy!

@andrewrk andrewrk merged commit 676e416 into ziglang:master Dec 9, 2020
@andrewrk
Copy link
Member

andrewrk commented Dec 9, 2020

Related, note this old but still accepted proposal: #114

@SpexGuy
Copy link
Contributor Author

SpexGuy commented Dec 9, 2020

Yay my first PR!

@SpexGuy SpexGuy deleted the fix-operator-precedence-docs branch February 1, 2021 20:38
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