diff options
author | Piers <helloPiers@users.noreply.github.com> | 2021-07-19 20:11:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-07-19 21:59:24 +0000 |
commit | c8f4e6152d5f0b767a8177b7d09884cf2279d8e6 (patch) | |
tree | f8d25ff640ae6ad268d0c791241b766fd57279ca /doc | |
parent | 1d91551b7326383343c7c143a8ac299d0a685289 (diff) | |
download | go-c8f4e6152d5f0b767a8177b7d09884cf2279d8e6.tar.gz go-c8f4e6152d5f0b767a8177b7d09884cf2279d8e6.zip |
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 <gri@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Trust: Than McIntosh <thanm@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go_spec.html | 2 |
1 files changed, 1 insertions, 1 deletions
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) </pre> <h3 id="Constant_expressions">Constant expressions</h3> |