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

spec: adjust example for consistency

Change-Id: I5ff9078907b78f31aec42abf749a193b15bc5109
GitHub-Last-Rev: 1f96d84f20
GitHub-Pull-Request: golang/go#47732
Reviewed-on: https://go-review.googlesource.com/c/go/+/342789
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
This commit is contained in:
seifchen 2021-08-17 23:54:33 +00:00 committed by Robert Griesemer
parent 6c5f028242
commit 592ee433f5

View File

@ -4350,7 +4350,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>