1
0
mirror of https://github.com/golang/go synced 2024-11-26 00:48:01 -07:00

weasel words about types in shift expressions suggested by rsc

R=rsc
OCL=26220
CL=26220
This commit is contained in:
Rob Pike 2009-03-12 18:40:07 -07:00
parent 6eb54cb05b
commit e20834092f

View File

@ -2426,7 +2426,7 @@ unary_op = "+" | "-" | "!" | "^" | "*" | "&" | "<-" .
The operand types in binary operations must be equal, with the following exceptions: The operand types in binary operations must be equal, with the following exceptions:
</p> </p>
<ul> <ul>
<li>If one operand has numeric type and the other operand is <li>Except in shift expressios, if one operand has numeric type and the other operand is
an ideal number, the ideal number is converted to match the type of an ideal number, the ideal number is converted to match the type of
the other operand (§Expressions).</li> the other operand (§Expressions).</li>