mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
Update go_spec.html
This commit is contained in:
parent
49402bee36
commit
067f96eeb2
|
@ -4334,7 +4334,7 @@ s4 := (*[4]byte)(s) // panics: len([4]byte) > len(s)
|
|||
|
||||
var t []string
|
||||
t0 := (*[0]string)(t) // t0 == nil
|
||||
t1 := (*[1]string)(t) // panics: len([1]string) > len(s)
|
||||
t1 := (*[1]string)(t) // panics: len([1]string) > len(t)
|
||||
</pre>
|
||||
|
||||
<h3 id="Constant_expressions">Constant expressions</h3>
|
||||
|
|
Loading…
Reference in a new issue