mirror of https://github.com/golang/go.git
spec: adjust example for consistency
This commit is contained in:
parent
a8d39f151d
commit
1f96d84f20
|
|
@ -4338,7 +4338,7 @@ t0 := (*[0]string)(t) // t0 == nil
|
||||||
t1 := (*[1]string)(t) // panics: len([1]string) > len(t)
|
t1 := (*[1]string)(t) // panics: len([1]string) > len(t)
|
||||||
|
|
||||||
u := make([]byte, 0)
|
u := make([]byte, 0)
|
||||||
u0 = (*[0]byte)(u) // u0 != nil
|
u0 := (*[0]byte)(u) // u0 != nil
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3 id="Constant_expressions">Constant expressions</h3>
|
<h3 id="Constant_expressions">Constant expressions</h3>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue