-
Notifications
You must be signed in to change notification settings - Fork 520
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
tour: if vs for info text #743
Comments
Interesting observation. I think you're right. If I read
I would deduce that "the expression need not be surrounded by parentheses" also holds for |
Should I send a PR with a fix like this
It won't be misleading and can provide clear and concise statement. |
Existing article is misleading, in new change clear description is provided Fixes golang#743
Existing article is misleading, in new change clear description is provided Fixes golang#743
Existing article is misleading, in new change clear description is provided. Fixes: golang/tour#743
Context: https://tour.golang.org/flowcontrol/5
on 5/14 of if, text says parens are NEED NOT. sure enough if (x>1) or if x>1 both work which IS what the text implies
so on for 1/14 the text IMPIES no parens but cutely braces required, so for fun tried them like the if
for (i:=1; i<10;i+1 ) but this FAILS with syntax error.
I was surprised because of "if" behavior, but also the texts implication.
Bill
The text was updated successfully, but these errors were encountered: