diff --git a/doc/go_spec.html b/doc/go_spec.html index 0e14a1f3b6..fd5fee46eb 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -4329,6 +4329,7 @@ a run-time panic occurs.
s := make([]byte, 2, 4) s0 := (*[0]byte)(s) // s0 != nil +s1 := (*[1]byte)(s[1:]) // &s1[0] == &s[1] s2 := (*[2]byte)(s) // &s2[0] == &s[0] s4 := (*[4]byte)(s) // panics: len([4]byte) > len(s)