You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The syntax error is 2z. You need an operator between the 2 and the z. I think what you want is 2*z.
We could probably improve the compiler error. Maybe it could say what the unexpected name was ("z"?).
adg
changed the title
tour: flowcontrol 8 sqrt math fails giving unrelatable message: syntax error: unexpected name, expecting semicolon or newline or }
cmd/compiler: include name in "unexpected name" error message
Jul 22, 2015
josharian
changed the title
cmd/compiler: include name in "unexpected name" error message
cmd/compile: include name in "unexpected name" error message
Aug 21, 2015
Context: http://tour.golang.org/flowcontrol/8
I get the same results for:
results:
Looks like I can't progress on the problem because I'm stuck on syntax.
The text was updated successfully, but these errors were encountered: