Skip to content

Commit c8f4e61

Browse files
helloPiersianlancetaylor
authored andcommitted
spec: correct example comment in Conversions from slice to array
Fixes #47280 Change-Id: I78a8d235949b4878c7f075ac4ca37700e7e6c31c GitHub-Last-Rev: 067f96e GitHub-Pull-Request: #47282 Reviewed-on: https://go-review.googlesource.com/c/go/+/335470 Reviewed-by: Robert Griesemer <[email protected]> Trust: Robert Griesemer <[email protected]> Trust: Than McIntosh <[email protected]>
1 parent 1d91551 commit c8f4e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/go_spec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4334,7 +4334,7 @@ <h4 id="Conversions_from_slice_to_array_pointer">Conversions from slice to array
43344334

43354335
var t []string
43364336
t0 := (*[0]string)(t) // t0 == nil
4337-
t1 := (*[1]string)(t) // panics: len([1]string) > len(s)
4337+
t1 := (*[1]string)(t) // panics: len([1]string) > len(t)
43384338
</pre>
43394339

43404340
<h3 id="Constant_expressions">Constant expressions</h3>

0 commit comments

Comments
 (0)