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
string(65.0) // illegal: 65.0 is not an integer constant
It says:
string(65.0) // illegal: 65.0 is not an integer constant
It should say "string" instead of of "integer" constant. Hopefully this didn't confuse anyone, as the meaning is quite obvious, but still it's worth fixing.
The text was updated successfully, but these errors were encountered:
On June 27, 2022 6:56:15 PM Ian Lance Taylor ***@***.***> wrote:
Actually, this is correct. Go permits string(c) where c is an integer
constant. It does not permit string(f) where f is a floating point constant.
string(c) returns a string containing the UTF-8 representation of the rune
whose value is c.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Regarding this line:
go/doc/go_spec.html
Line 5280 in 3af5280
It says:
string(65.0) // illegal: 65.0 is not an integer constant
It should say "string" instead of of "integer" constant. Hopefully this didn't confuse anyone, as the meaning is quite obvious, but still it's worth fixing.
The text was updated successfully, but these errors were encountered: