From: Piers Date: Mon, 19 Jul 2021 20:11:29 +0000 (+0000) Subject: spec: correct example comment in Conversions from slice to array X-Git-Tag: go1.17rc2~1^2~23 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c8f4e6152d5f0b767a8177b7d09884cf2279d8e6;p=gostls13.git spec: correct example comment in Conversions from slice to array Fixes #47280 Change-Id: I78a8d235949b4878c7f075ac4ca37700e7e6c31c GitHub-Last-Rev: 067f96eeb2c918eb4f775c428edc945c75af44d8 GitHub-Pull-Request: golang/go#47282 Reviewed-on: https://go-review.googlesource.com/c/go/+/335470 Reviewed-by: Robert Griesemer Trust: Robert Griesemer Trust: Than McIntosh --- diff --git a/doc/go_spec.html b/doc/go_spec.html index ad21ffb1b8..df256f0f0e 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -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)

Constant expressions